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,824
  • 3
  • 20
  • 33

1 Answers1

3

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

JamieSee
  • 12,256
  • 2
  • 30
  • 47