Skip to content

Commit 71353db

Browse files
day 05 task complete
1 parent 3bfab3d commit 71353db

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

day05/leetcode2635.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// 2635. Apply Transform Over Each Element in Array
2+
// URL -> https://leetcode.com/problems/apply-transform-over-each-element-in-array/
3+
4+
/**
5+
* @param {number[]} arr
6+
* @param {Function} fn
7+
* @return {number[]}
8+
*/
9+
var map = function (arr, fn) {
10+
let output = arr.map(fn)
11+
12+
return output;
13+
};

0 commit comments

Comments
 (0)