UNPKG
array-map
Version:
latest (0.0.1)
0.0.1
0.0.0
`[].map(f)` for older browsers
github.com/ljharb/array-map
ljharb/array-map
array-map
/
example
/
map.js
8 lines
(6 loc)
•
155 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
'use strict'
;
var
map =
require
(
'../'
);
var
letters =
map
([
97
,
98
,
99
],
function
(
c
) {
return
String
.
fromCharCode
(c); });
console
.
log
(letters.
join
(
''
));