Possible Duplicates:
1. What good does zero-fill bit-shifting by 0 do? (a >>> 0)
2. JavaScript triple greater than
I was digging through some MooTools code, and noticed this snippet being used in every array method:
var length = this.length >>> 0;
What's the benefit of doing this? It doesn't seem to me like it's some max length thing, as 3247823748372 >>> 0 === 828472596
and 3247823748373 >>> 0 === 828472597
(so, both are 1 higher, if it were for maxLength wouldn't it be better to do something like var length = Math.min(this.length, MAX_LENGTH)
?).