Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nathanfaucett/array-map

nathanfaucett184MIT0.0.1

creates a new array with the results of calling a provided function on every element in this array.

array-map, array-map.js

readme

array-map

array map for the browser and node.js

var arrayMap = require("@nathanfaucett/array-map");


var array = arrayMap([1, 2, 3, 4, 5, 6], function(value, index, array) {
    return value % 2 === 0;
});

array === [2, 4, 6];