2

Possible Duplicate:
What is the JavaScript >>> operator and how do you use it?

I was browsing through some documentation on MDN for the indexOf workaround (link) and I came across this line of code:

var len = t.length >>> 0;

Was just curious what that did, as I've never seen it.

Answer is in the first comment.

Community
  • 1
  • 1
CoryDorning
  • 1,726
  • 3
  • 19
  • 30

1 Answers1

3

Unsigned right shift. See Unsigned Right Shift Operator (>>>) (JavaScript) .

JamieSee
  • 11,832
  • 2
  • 28
  • 44