mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Minor style nits.
This commit is contained in:
@@ -4734,10 +4734,10 @@
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function every(collection, predicate, thisArg) {
|
function every(collection, predicate, thisArg) {
|
||||||
|
var func = isArray(collection) ? arrayEvery : baseEvery;
|
||||||
if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
|
if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
|
||||||
predicate = getCallback(predicate, thisArg, 3);
|
predicate = getCallback(predicate, thisArg, 3);
|
||||||
}
|
}
|
||||||
var func = isArray(collection) ? arrayEvery : baseEvery;
|
|
||||||
return func(collection, predicate);
|
return func(collection, predicate);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4782,9 +4782,9 @@
|
|||||||
* // => [{ 'name': 'barney', 'age': 36 }]
|
* // => [{ 'name': 'barney', 'age': 36 }]
|
||||||
*/
|
*/
|
||||||
function filter(collection, predicate, thisArg) {
|
function filter(collection, predicate, thisArg) {
|
||||||
predicate = getCallback(predicate, thisArg, 3);
|
|
||||||
|
|
||||||
var func = isArray(collection) ? arrayFilter : baseFilter;
|
var func = isArray(collection) ? arrayFilter : baseFilter;
|
||||||
|
|
||||||
|
predicate = getCallback(predicate, thisArg, 3);
|
||||||
return func(collection, predicate);
|
return func(collection, predicate);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5576,10 +5576,10 @@
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function some(collection, predicate, thisArg) {
|
function some(collection, predicate, thisArg) {
|
||||||
|
var func = isArray(collection) ? arraySome : baseSome;
|
||||||
if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
|
if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
|
||||||
predicate = getCallback(predicate, thisArg, 3);
|
predicate = getCallback(predicate, thisArg, 3);
|
||||||
}
|
}
|
||||||
var func = isArray(collection) ? arraySome : baseSome;
|
|
||||||
return func(collection, predicate);
|
return func(collection, predicate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user