Addy Osmani on Twitter: "Tip: JavaScript's Array.flat() accepts a depth parameter. Array.flat(Infinity) flattens recursively until the array contains no more nested arrays! https://t.co/n4FI1nS2Ii https://t.co/P6fhmA0NSi" / Twitter
![JavaScript Tips #4: Array flat and flatMap Implementation | by Marco Antonio Ghiani | Better Programming JavaScript Tips #4: Array flat and flatMap Implementation | by Marco Antonio Ghiani | Better Programming](https://miro.medium.com/v2/resize:fit:1400/1*6t7efBxHBH2n3iZEfyMkBQ.png)
JavaScript Tips #4: Array flat and flatMap Implementation | by Marco Antonio Ghiani | Better Programming
![Minko Gechev on Twitter: "JavaScript tip: Array.prototype.flat flattens nested arrays ✨ Its only argument specifies how deep a nested array structure should be flattened Find more https://t.co/Ca3WTusZNV #SmooshGate FAQ https://t.co/1PSTOVgKDi ... Minko Gechev on Twitter: "JavaScript tip: Array.prototype.flat flattens nested arrays ✨ Its only argument specifies how deep a nested array structure should be flattened Find more https://t.co/Ca3WTusZNV #SmooshGate FAQ https://t.co/1PSTOVgKDi ...](https://pbs.twimg.com/media/Esy61SWW4AERxtr.jpg:large)