1. Engineering
  2. Computer Science
  3. javascript write a method flatten can take an array of...

Question: javascript write a method flatten can take an array of...

Question details

JavaScript: Write a method flatten() can take an array of arrays and return a single array that has all the elements of the original arrays. You should utilize the reduce() method and the concat() method.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution