#flatten-array
Read more stories on Hashnode
Articles with this tag
let output = []; function flattenArray(arr) { for (let i = 0; i < arr.length; i++) { if (Array.isArray(arr[i])) { flattenArray(arr[i]); ...