Last active
June 19, 2016 14:43
-
-
Save slikts/23147f040095c78d2b21f0a8d95f67cd to your computer and use it in GitHub Desktop.
Not that great due to stack limits with variadic params
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
const flattenDeep = x => Array.isArray(x) ? [].concat(...x.map(flattenDeep)) : x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment