Array flat() method in JavaScript! - New in Chrome Update 69

Published: 12 September 2018
on channel: dcode
5,629
134

The new Array.prototype.flat method in JavaScript allows you to take a multidimensional Array (an Array of Arrays) and then flatten it to a single Array.

In this video we take a look at the flat() method in action, with an example of it's basic usage and also with it's single optional parameter, depth.

Support me on Patreon:
  / dcode   - with enough funding I plan to develop a website of some sort with a new developer experience!

For your reference, check this out:
https://developer.mozilla.org/en-US/d...

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!


On this page of the site you can watch the video online Array flat() method in JavaScript! - New in Chrome Update 69 with a duration of hours minute second in good quality, which was uploaded by the user dcode 12 September 2018, share the link with friends and acquaintances, this video has already been watched 5,629 times on youtube and it was liked by 134 viewers. Enjoy your viewing!