arr.splice(0, arr.length);
arr.length = 0;
while(arr.length) {
arr.pop();
}
arr.shift();
for(let i = 0; i < arr.length; i++) {
delete arr[i];
arr.forEach((item, index) => {
arr.splice(index, 1);
});