Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const arr = [1, 2, [3, 4, [5, 6]]];
- const arr2=arr.flat(2);
- console.log(arr2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement