3 ms·
JavaScript thinks empty arrays are true and it’s annoying because you have to write if (a.length) instead of if (a).
by earthboundkid 3y ago
JavaScript thinks empty arrays are true and it’s annoying because you have to write if (a.length) instead of if (a).