3 ms·
Oh JavaScript. Will a Boolean always on all browsers coerce itself into a 0 or 1 if treated like a number?
by oh_sigh 9y ago
Oh JavaScript. Will a Boolean always on all browsers coerce itself into a 0 or 1 if treated like a number?
- tjgq 9y agoThe Javascript coercion rules, arcane as they are, are actually part of the spec and (barring any bugs) should work across browsers.