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,854
  • 4
  • 25
  • 36

1 Answers1

3

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

JamieSee
  • 12,696
  • 2
  • 31
  • 47