Last active
May 12, 2016 19:35
-
-
Save congwenma/a418d06681682c0653fcf05ae58eb02f 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
Array.prototype.flatMap = function(lambda) { | |
return Array.prototype.concat.apply([], this.map(lambda)); | |
}; | |
Transis && (Transis.Array.prototype.flatMap = function(lambda) { | |
return Array.prototype.concat.apply([], this.map(lambda)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment