ECMAScript 2016 adds Math.trunc()[0] which should give the same value as | 0 for inputs that fit in 32 bits.<p>[0] <a href="http:&#x2F;&#x2F;www.javascripture.com&#x2F;Math#trunc" rel="nofollow">http:&#x2F;&#x2F;www.javascripture.com&#x2F;Math#trunc</a>