Created
December 25, 2016 17:36
-
-
Save krishna2nd/2fc6ec89771547aa689f898a6c4f9889 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
function arrFlatern(inArray) { | |
return inArray.reduce(function (_in, to) { | |
return _in.concat(Array.isArray(to) ? arrFlatern(to) : to); | |
}, []); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment