lihai 8d6c751f49 feat: push | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
example | %!s(int64=2) %!d(string=hai) anos | |
test | %!s(int64=2) %!d(string=hai) anos | |
.travis.yml | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
index.js | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos | |
readme.markdown | %!s(int64=2) %!d(string=hai) anos |
[].map(f)
for older browsers
var map = require('array-map');
var letters = map([97,98,99], function (c) {
return String.fromCharCode(c);
});
console.log(letters.join(''));
output:
abc
var map = require('array-map')
Create a new array ys
by applying f(xs[i], i, xs)
to each element in xs
at
index i
.
With npm do:
npm install array-map
MIT