Created
March 31, 2019 16:04
-
-
Save moimikey/3bdeec3d27b2d4be8809dc064c2019ee to your computer and use it in GitHub Desktop.
deep flatten array in javascript
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
export const deepFlat = (arr) => arr.flat(Infinity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment