4 ms·
What concerns me about the ES5 solution is that with freeze, apparently we got yet another different way to evaluate equality. if(value) behaves differently fr
by pilif 16y ago
What concerns me about the ES5 solution is that with freeze, apparently we got yet another different way to evaluate equality.
if(value) behaves differently from if (value == true), behaves differently from if (value === true), which again behaves differently from that check in freeze.
IMHO, that freeze check should have behaved the same as ===, so the proposed solution should not have worked.
Oh well.