DEV Community

Discussion on: 3 ways to empty an Array in JavaScript

farhaduneci profile image
Farhad Uneci

Your Topics are interesting 👍
Which method do you think will be the best in case of readability and performance?

I will chose assigning it to a new empty array baratheon = []

sanchithasr profile image
Sanchithasr Author

Assigning it to new empty array is the faster way.

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