You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
5 years ago | |
---|---|---|
.. | ||
example | 5 years ago | |
test | 5 years ago | |
.travis.yml | 5 years ago | |
LICENSE | 5 years ago | |
index.js | 5 years ago | |
package.json | 5 years ago | |
readme.markdown | 5 years ago |
readme.markdown
array-map
[].map(f)
for older browsers
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