lihai 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
..
example 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
test 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
.travis.yml 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
LICENSE 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
index.js 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
package.json 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos
readme.markdown 8d6c751f49 feat: push %!s(int64=2) %!d(string=hai) anos

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