Sections

@calvinbonner/minifw API Reference

Version 0.2.1

helpers/each

function each

each<T>(basis: T[], callback: object): string

Maps each item in an array to a string and concatenates the result. Useful for rendering repeated template fragments from list data.

basis

The array to iterate over.

callback

Called for each item with its index.

Returns:

The concatenated string output.