1 2 3 4 5 6 7 8 9
var arr = []; Object.defineProperty(arr, 4, { configurable: true, enumerable: false, writable: false, value: undefined }); for (var y = 0; y < 2; y++) arr.length = 0;