[1, 2, 3, [4, 5, [6, 7]]].flat() // >> [1, 2, 3, 4, 5, [6, 7]]
[1, 2, 3, [4, 5, [6, 7]]].flat(Infinity) // >> [1, 2, 3, 4, 5, 6, 7]
-
-
Save BerezhniyDmitro/b2b77241992a0c47ffbb5166c852b6d1 to your computer and use it in GitHub Desktop.
Flat Array
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment