function each
each<T>(basis: T[], callback: object): stringMaps each item in an array to a string and concatenates the result. Useful for rendering repeated template fragments from list data.
basisThe array to iterate over.
callbackCalled for each item with its index.
The concatenated string output.