DEV Community

Discussion on: 3 ways to empty an Array in JavaScript

Collapse
 
sanchithasr profile image
Sanchithasr

Assigning it to new empty array is the faster way.

Some comments have been hidden by the post's author - find out more