Just read @slicknet 's article on why JavaScript's "every" returns true for empty arrays. the reason is that all elements of the empty array (actually all of the zero number of elements) are also satisfying the condition! bit.ly/3TVbVQNJust #javascript

codinggeek1984's tweet image. Just read @slicknet  's article on why JavaScript's "every" returns true for empty arrays. the reason is that all elements of the empty array (actually all of the zero number of elements) are also satisfying the condition!  bit.ly/3TVbVQNJust 
#javascript

United States Trends
Loading...

Something went wrong.


Something went wrong.