securityos/node_modules/array-map/example/map.js

6 lines
141 B
JavaScript

var map = require('../');
var letters = map([97,98,99], function (c) {
return String.fromCharCode(c);
});
console.log(letters.join(''));