MyClass.prototype.length = function () {};
$.each({length: 1, 0: 1}, function(index, value) { console.log(value); // 1 });