I found this in the dojo.js library:
13444: color >>= bits;
Context:
ArrayUtil.forEach(["b", "g", "r"], function(x){
var c = color & mask;
color >>= bits;
t[x] = bits == 4 ? 17 * c : c;
});
I can’t find any reference to it anywhere else. It’s not in the O’Reilly JavaScript pocket reference or the Wikipedia page.
I know what it means in functional programming, but I’m pretty sure JavaScript doesn’t support monads!
It is the same a
color = color >> bits– similar to operators like +=, -=, *= …EDIT
The
>>(in the integer context) shifts bits to the right, i.e. dividing by 2 but keeping the sign bit in the same place