3 ms·
That's exactly how Ruby behaves.
by x3n0ph3n3 3y ago
That's exactly how Ruby behaves.
- michaelteter 3y agoRuby 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).