var PseudoArray = function() {}; PseudoArray.prototype = Array.prototype; var list1 = new PseudoArray; var list2 = new Array; list1[0] = null; list2[0] = null; alert(list1.length == list2.length);