r/javascript • • Mar 18 '19

What's your favorite, most useful javascript one-liner?

385 Upvotes

422 comments sorted by

View all comments

Show parent comments

27

u/Tysonzero Mar 19 '19

That's the mathematically correct thing to do, it's actually a pretty fundamental mathematical principle. Vacuous truth

1

u/NoInkling Mar 19 '19

Right, it doesn't make the method "weird", but it is something you have to keep in mind regardless because you could intuit both ways.

1

u/third774 Mar 19 '19

Is there a similar term for .some() always returning false on empty arrays? I suppose it's still "vacuous", right? So maybe "Vacuous Falsity"?