Created
August 5, 2018 23:17
-
-
Save brennancheung/079bc45d98705f2bc024550d23a887e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let newArr = [] | |
| for (let i = 0; i < arr.length; i++) { | |
| let item = arr[i] | |
| newArr.push(fn(item) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment