array-map
`[].map(f)` for older browsers
Last updated 7 years ago by substack .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install array-map 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.0                                ...           latest (7 years ago)

1 Versions

  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 266
This Week 4,269
This Month 53,807
Last Day 4,003
Last Week 23,576
Last Month 111,718
Dependencies (0)
None
Dev Dependencies (1)
Dependents (234)

Copyright 2014 - 2016 © taobao.org |