@gynvael I’ve seen the |0 method show up a lot in the creative code community lately.

@probably Yeah, TBH I use it as well. It has however a nasty side effect - it also truncates numbers number to a 32-bit integer value (even though JS's number type can store integers safely to around 2**53ish).

0x7fffffff|0
2147483647

(0x7fffffff+1)|0
-2147483648

(0x100000000)|0
0