TLDR Web Dev · QUICK LINKS
JS SURPRISE: ARRAY.EVERY() ALWAYS RETURNS TRUE FOR EMPTY ARRAYS
Summary from the TLDR Web Dev newsletter
Array.every() calls return true for empty arrays. As a result, it’s useful to consider whether there are any items in an array that don’t match a condition with every() call.