Module: utils/map

utils/map

Iterates various JavaScript types.
Source:

Requires

Methods

(static) map(obj, index, value, data, iterator) → {Array}

Allows iteration of an Array, Arguments, NodeList, or plain Object.
Parameters:
Name Type Description
obj * Object or Array to iterate.
index String An identifier name for index.
value String An identifier name for value.
data object Data from parent scope.
iterator function Function that is called within the template.
Source:
Returns:
String output to be joined.
Type
Array