Re:A re-introduction to JavaScript
by bluesnowmonkey on Saturday May 09, 2015 @12:07PM
(#9516746)
Another way to cast to a Number is the bitwise-or operator. It has the useful property of always yielding a number.
[ Parent
| on HN ]
Bitwise operations don't produce Numbers (f64), but signed integers (i32).
> produce...signed integers
Well, except for right logical shifts.