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

array-map Version Badge

github actions coverage License Downloads

npm badge

[].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

Current Tags

  • 0.0.1                                ...           latest (2 years ago)

2 Versions

  • 0.0.1                                ...           2 years ago
  • 0.0.0                                ...           11 years ago
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (8)

© 2010 - cnpmjs.org x YWFE | Home | YWFE