Node.js — How to Reset and Empty an Array
When emptying an array in JavaScript/Node.js you’ll surely think of reassigning your array’s value to a new array. There’s another way to reset an array: set the length to zero. Let’s have a look at both ways. {{outline}} Assign an Empty Array A common …
Continue Reading