We will discuss Polyfill for Array.flat(). About Array.flat is a function that will take depth as a parameter and return new array of concatenated arrays till depth. const array = [1,3,4,5,[2,3,4,[5,67]], [1,2,3]] console.log(array.flat()) // [ 1, 3,...

Markdown supported · ⌘↵ to post
No responses yet.