GT2/GT2-iOS/node_modules/array-map
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
example correct tree err 2018-02-12 17:26:06 +00:00
test correct tree err 2018-02-12 17:26:06 +00:00
.travis.yml correct tree err 2018-02-12 17:26:06 +00:00
LICENSE correct tree err 2018-02-12 17:26:06 +00:00
index.js correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
readme.markdown correct tree err 2018-02-12 17:26:06 +00:00

readme.markdown

array-map

[].map(f) for older browsers

testling badge

build status

example

var map = require('array-map');
var letters = map([97,98,99], function (c) {
    return String.fromCharCode(c);
});
console.log(letters.join(''));

output:

abc

methods

var map = require('array-map')

var ys = map(xs, f)

Create a new array ys by applying f(xs[i], i, xs) to each element in xs at index i.

install

With npm do:

npm install array-map

license

MIT