UNPKG
cpt-waffle-lotide
Version:
latest (1.0.0)
1.0.0
LoTide in Typescript
github.com/vasiliy-klimkin/lotide-ts
vasiliy-klimkin/lotide-ts
cpt-waffle-lotide
/
src
/
map.js
11 lines
(10 loc)
•
243 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
const
map
= (
array, cb
) => {
const
result = []; array.
forEach
(
(
item
) =>
{ result.
push
(
cb
(item)); });
return
result; };
exports
.
default
= map;