Lines Matching refs:some
377 assert.notOk(_.some([]), 'the empty set');
378 assert.notOk(_.some([false, false, false]), 'all false values');
379 assert.ok(_.some([false, false, true]), 'one true value');
380 assert.ok(_.some([null, 0, 'yes', false]), 'a string');
381 assert.notOk(_.some([null, 0, '', false]), 'falsy values');
382 assert.notOk(_.some([1, 11, 29], function(num){ return num % 2 === 0; }), 'all odd numbers');
383 assert.ok(_.some([1, 10, 29], function(num){ return num % 2 === 0; }), 'an even number');
384 assert.strictEqual(_.some([1], _.identity), true, 'cast to boolean - true');
385 assert.strictEqual(_.some([0], _.identity), false, 'cast to boolean - false');
386 assert.ok(_.some([false, false, true]));
389 assert.notOk(_.some(list, {a: 5, b: 2}), 'Can be called with object');
390 assert.ok(_.some(list, 'a'), 'String mapped to object property');
393 assert.ok(_.some(list, {b: 2}), 'Can be called with object');
394 assert.notOk(_.some(list, 'd'), 'String mapped to object property');
396 assert.ok(_.some({a: '1', b: '2', c: '3', d: '4', e: 6}, _.isNumber), 'takes objects');
397 assert.notOk(_.some({a: 1, b: 2, c: 3, d: 4}, _.isObject), 'takes objects');
398 …assert.ok(_.some(['a', 'b', 'c', 'd'], _.hasOwnProperty, {a: 1, b: 2, c: 3, d: 4}), 'context works…
399 …assert.notOk(_.some(['x', 'y', 'z'], _.hasOwnProperty, {a: 1, b: 2, c: 3, d: 4}), 'context works');
403 assert.strictEqual(_.any, _.some, 'is an alias for some');
886 assert.ok(_.some(parent.childNodes, _.isElement));