From 8ff97468ccffb82300b3a1f30c37b37ebdeb3466 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 17 Aug 2014 13:42:24 -0700 Subject: [PATCH] Minor style nits. --- lodash.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lodash.js b/lodash.js index a6ad667c8..4ec5e877c 100644 --- a/lodash.js +++ b/lodash.js @@ -4734,10 +4734,10 @@ * // => false */ function every(collection, predicate, thisArg) { + var func = isArray(collection) ? arrayEvery : baseEvery; if (typeof predicate != 'function' || typeof thisArg != 'undefined') { predicate = getCallback(predicate, thisArg, 3); } - var func = isArray(collection) ? arrayEvery : baseEvery; return func(collection, predicate); } @@ -4782,9 +4782,9 @@ * // => [{ 'name': 'barney', 'age': 36 }] */ function filter(collection, predicate, thisArg) { - predicate = getCallback(predicate, thisArg, 3); - var func = isArray(collection) ? arrayFilter : baseFilter; + + predicate = getCallback(predicate, thisArg, 3); return func(collection, predicate); } @@ -5576,10 +5576,10 @@ * // => false */ function some(collection, predicate, thisArg) { + var func = isArray(collection) ? arraySome : baseSome; if (typeof predicate != 'function' || typeof thisArg != 'undefined') { predicate = getCallback(predicate, thisArg, 3); } - var func = isArray(collection) ? arraySome : baseSome; return func(collection, predicate); }