DEV Community

Discussion on: TypeOf Array is Gotcha!

Collapse
 
qm3ster profile image
Mihail Malo

The other gotcha is that it mutates the source array, and then also returns it, unlike most Array.prototype methods.