We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2610aec commit fc3baf4Copy full SHA for fc3baf4
2635. apply-transform-over-each-element-in-array/index.js
@@ -0,0 +1,8 @@
1
+const map = function (arr, fn) {
2
+ let temp = []
3
+ for (let i = 0; i < arr.length; i++) {
4
+ temp[i] = fn(arr[i], i)
5
+ }
6
+
7
+ return temp
8
+}
0 commit comments