Advertisement
boris-ivanov

Untitled

Jul 2nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. const arr = [1, 2, [3, 4, [5, 6]]];
  2. const arr2=arr.flat(2);
  3. console.log(arr2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement