Module: map

Methods

(inner) map(f, array) → {Array}

Parameters:
Name Type Description
f function
array Array
Source:
Returns:
Type
Array
Example
var array = [0,1,2,3]
var result = map(x => x * 2, array) //[0,2,4,6]