Monday, April 16, 2018

the difference between .some and .every in JavaScript

.some returns true if one item in the collection matches the criteria, but .every only returns true if every item in the collection matches the criteria.

No comments:

Post a Comment