MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eiuy02a
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
Show parent comments
27
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"?
1
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.
Is there a similar term for .some() always returning false on empty arrays? I suppose it's still "vacuous", right? So maybe "Vacuous Falsity"?
.some()
false
27
u/Tysonzero Mar 19 '19
That's the mathematically correct thing to do, it's actually a pretty fundamental mathematical principle. Vacuous truth