Is it possible to get length of an array without iterating complete array having non numeric indexes?
Length property is always 0 for non numeric indexed array.
Can we get number of elements using another property of array or it's prototype?
var arr = [];
arr['first'] = 1;
arr['second'] = 2;
console.log(arr.length); //0