Easy
How to Efficiently Flatten Nested Arrays in JavaScript Using Array Methods
Which method would most efficiently flatten an array of arrays in JavaScript?
1const nestedArray = [[1, 2], [3, [4, 5]], [6]];23// Your solution here to flatten the array into [1, 2, 3, 4, 5, 6]