Created
June 14, 2016 13:19
-
-
Save tuan/b7669a5bf8b2f4b44bf299543c3c2a63 to your computer and use it in GitHub Desktop.
This file contains 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
function mapWith (fn) { | |
return (list) => { | |
return Array.prototype.map.call( | |
list, | |
(value) => fn.call(this, value)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment