Lines Matching refs:predicate
211 _.find = _.detect = function(obj, predicate, context) {
214 key = _.findIndex(obj, predicate, context);
216 key = _.findKey(obj, predicate, context);
223 _.filter = _.select = function(obj, predicate, context) {
225 predicate = cb(predicate, context);
227 if (predicate(value, index, list)) results.push(value);
233 _.reject = function(obj, predicate, context) { argument
234 return _.filter(obj, _.negate(cb(predicate)), context);
239 _.every = _.all = function(obj, predicate, context) {
240 predicate = cb(predicate, context);
245 if (!predicate(obj[currentKey], currentKey, obj)) return false;
252 _.some = _.any = function(obj, predicate, context) {
253 predicate = cb(predicate, context);
258 if (predicate(obj[currentKey], currentKey, obj)) return true;
441 _.partition = function(obj, predicate, context) { argument
442 predicate = cb(predicate, context);
445 (predicate(value, key, obj) ? pass : fail).push(value);
615 return function(array, predicate, context) { argument
616 predicate = cb(predicate, context);
620 if (predicate(array[index], index, array)) return index;
857 _.negate = function(predicate) { argument
859 return !predicate.apply(this, arguments);
1013 _.findKey = function(obj, predicate, context) { argument
1014 predicate = cb(predicate, context);
1018 if (predicate(obj[key], key, obj)) return key;