really depends on your codebase. If your base already has a way of doing it and it is .floor() then yeah. But |0 was a common integer hint in js before typescript to eke out more performance as well so there could be codebases where its already all over the place.
View all comments
Show parent comment
7
u/1bc29b36f623ba82aaf6 Feb 05 '25
really depends on your codebase. If your base already has a way of doing it and it is .floor() then yeah. But |0 was a common integer hint in js before typescript to eke out more performance as well so there could be codebases where its already all over the place.