The flat() method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth.
Flat is really a useful feature of EcmaScript.
Just uploaded a new Video on ESNext series 🎉
ESNext in 2020 - flat() : Flatten an Array
Please SUBSCRIBE for my future videos on ESNext series and also other cool series 🙌
YoutTube Channel: https://www.youtube.com/channel/UCy5EgfydCQlVv_AM-FZyYcg
See you in my next Post!