What is this asm style “x | 0” some javascript programmers are now using?

According to JavaScript Performance for Madmen Wrapping integer arithmetic expressions in ( ) | 0 allows the runtime to be sure that you’re doing integer arithmetic instead of floating-point arithmetic. This allows it to avoid checking for overflow and produce faster code in many cases. and according to the page, it’s true for “most” Javascript … Read more