lxy 1c63d88d40 demo 2 yıl önce
..
.github 1c63d88d40 demo 2 yıl önce
example 1c63d88d40 demo 2 yıl önce
test 1c63d88d40 demo 2 yıl önce
.eslintrc 1c63d88d40 demo 2 yıl önce
CHANGELOG.md 1c63d88d40 demo 2 yıl önce
LICENSE 1c63d88d40 demo 2 yıl önce
README.md 1c63d88d40 demo 2 yıl önce
index.js 1c63d88d40 demo 2 yıl önce
package.json 1c63d88d40 demo 2 yıl önce

README.md

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