29-07-2013, 07:22 PM
ES3
ES5
for (var index in arr) {
if (arr.hasOwnProperty(index)) {
indexes.push(index);
}
}
ES5
Object.defineProperty(Array.prototype, 'empty', {enumerable: false});