Skip to content

Commit 3646cb1

Browse files
authored
Create lost-without-a-map.js
1 parent dfdd07c commit 3646cb1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lost-without-a-map.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function maps(x = []){
2+
let tempArray_ = []
3+
x.forEach((fn => {
4+
tempArray_.push(fn * 2)
5+
}))
6+
return tempArray_
7+
}
8+
9+
maps([1,2,3])

0 commit comments

Comments
 (0)