mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Ensure _.every returns false as soon as the callback result is falsey.
Former-commit-id: d5488688c4a30376999b04ba80f1551af403b516
This commit is contained in:
@@ -1883,9 +1883,9 @@
|
||||
var result = true;
|
||||
callback = createCallback(callback, thisArg);
|
||||
forEach(collection, function(value, index, collection) {
|
||||
return (result = callback(value, index, collection));
|
||||
return (result = !!callback(value, index, collection));
|
||||
});
|
||||
return !!result;
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user