DEV Community

Discussion on: How to empty an array in JavaScript

Collapse
 
bias profile image
Tobias Nickel

yes, any just by doing so, the author introduce a implicit dependencies between components. Using the same array all over the and somewhere it get emptied will cause some nice side effects.

This will give you some fun debugging session.