You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
oatkiller edited this page Sep 13, 2010
·
2 revisions
Iterates over an array or object, passing each thing to the fn you provide. if the function returns true every time, every returns true. otherwise every returns false
(function () {
// 1, 2, and 3 are all less than 4.
[1,2,3][o.every](function (n) {return n < 4;}); // true;
// 1, and 2 are less than 4 but 5 isnt...
[1,2,5][o.every](function (n) {return n < 4;}); // false;
})();