Created
June 21, 2017 15:08
-
-
Save DavidJBarnes/677f989141137772c4ee60cc8a7f36f7 to your computer and use it in GitHub Desktop.
Reduce Array
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
[[1,2,[3]],4].reduce(function(a, b){ | |
return a.concat(b); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment