DEV Community

loading...

Discussion on: What’s new in Javascript?

Collapse
genta profile image
Fabio Russo

Oh that Array.flat() is so tasty for me!

Collapse
ayudhkrgupta14 profile image
Ayudh Kumar Gupta

any possible usecases?

Collapse
genta profile image
Fabio Russo

Hm... using arr.flat().includes(something) to find into nested arrays without using recursion.
Dunno, just the first usecase jumped into my mind.