Created
May 2, 2013 18:20
-
-
Save cwharris/5504195 to your computer and use it in GitHub Desktop.
OH LOOK IT IS GOOD FRIEND FLAT MAP COME TO SAVE US ALL FROM DOOM.
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 flatMap (array, func) { | |
return Array.prototype.concat.apply([], array.map(func)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment