3 ms·
On my Chrome: Math.floor = 2224ms for 100,000,000 iterations 0| = 302ms for 100,000,000 iterations. So in terms of performace, the difference is moot. If you
by axod 16y ago
On my Chrome:
Math.floor = 2224ms for 100,000,000 iterations
0| = 302ms for 100,000,000 iterations.
So in terms of performace, the difference is moot. If you want hacky non readable code that sometimes works, use 0|