3 ms·
Interestingly enough, it's probably faster to test != '0': http://jsperf.com/test-bool-cast/2 http://jsperf.com/test-bool-cast/2
by mmastrac 13y ago
Interestingly enough, it's probably faster to test != '0':
http://jsperf.com/test-bool-cast/2 http://jsperf.com/test-bool-cast/2