Easy
This question is a daily question and will count towards your daily streak.
What is the value of flattened after the reduce function runs?
1const nestedArray = [[1, 2], [3, 4], [5, [6, 7]]];23const flattened = nestedArray.reduce((acc, item) => {4 return acc.concat(Array.isArray(item) ? item.flat() : item);5}, []);