UNPKG
layaair2-cmd
Version:
latest (1.6.15)
1.6.15
1.6.14
1.6.13
1.6.12
1.6.11
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.20
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.1
1.0.0
layaair version 2 toolkit
layaair2-cmd
/
node_modules
/
array-map
/
index.js
12 lines
(10 loc)
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
module
.
exports
=
function
(
xs, f
) {
if
(xs.
map
)
return
xs.
map
(f);
var
res = [];
for
(
var
i =
0
; i < xs.
length
; i++) {
var
x = xs[i];
if
(hasOwn.
call
(xs, i)) res.
push
(
f
(x, i, xs)); }
return
res; };
var
hasOwn =
Object
.
prototype
.
hasOwnProperty
;