SyntaxFix
Write A Post
Hire A Developer
Questions
Performance test:
http://jsperf.com/array-clear-methods/3
a = []; // 37% slower a.length = 0; // 89% slower a.splice(0, a.length) // 97% slower while (a.length > 0) { a.pop(); } // Fastest