DEV Community

Discussion on: JavaScript Array.flat()

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

It should throw errors if arrays cannot be flattened (but it doesn't).

Also can be reproduced with simply reduce.