Nowadays, browser engines have improved a lot and Math.floor
is the same, if not faster.
Also, clarity is better than micro-optimizations in this case.
Nowadays, browser engines have improved a lot and Math.floor
is the same, if not faster.
Also, clarity is better than micro-optimizations in this case.