4 ms·
Ruby and Python agree on the all/any functions, but they disagree on the if. And in the "if", I think the Ruby result is better.
by michaelteter 3y ago
Ruby and Python agree on the all/any functions, but they disagree on the if. And in the "if", I think the Ruby result is better.
- earthboundkid 3y agoJavaScript thinks empty arrays are true and it’s annoying because you have to write if (a.length) instead of if (a).