Skip to content

Instantly share code, notes, and snippets.

@moimikey
Created March 31, 2019 16:04
Show Gist options
  • Save moimikey/3bdeec3d27b2d4be8809dc064c2019ee to your computer and use it in GitHub Desktop.
Save moimikey/3bdeec3d27b2d4be8809dc064c2019ee to your computer and use it in GitHub Desktop.
deep flatten array in javascript
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