While there are various solutions available over the internet, I believe the following approach is good enough for most of the scenarios.
someArray.length = 0;
Setting the length of an Array to zero would clear the existing array and avoids creating a new array. This would be helpful especially if you had a reference to the old array in some other array variable . For e.g :
Array_A = ['Green','Blue','Red','Yellow']; Array_B = Array_A; Array_A = ; console.log(Array_B) // Prints ['Green','Blue','Red','Yellow'] /* Better way to do it. */ Array_A = ['Green','Blue','Red','Yellow']; Array_B = Array_A; Array_A.length = 0; console.log(Array_B); // Prints 
Hope you found this article helpful. Please do like us on facebook and follow us on Twitter.