4 ms·
The parseInt bug that's mentioned in thd article is very likely to catch you eventually if you use Javascript for long enough. The habit that I developed as a
by ufo 6y ago
The parseInt bug that's mentioned in thd article is very likely to catch you eventually if you use Javascript for long enough.
The habit that I developed as a response to that is to always pass a lambda to the callback. That is, write this:
foo(x => f(x))
instead of
foo(f)