Minor whitespace nits. [ci skip]

This commit is contained in:
John-David Dalton
2014-01-30 01:37:17 -08:00
parent da1aad7b92
commit 86a37e6f8d

View File

@@ -1809,8 +1809,8 @@
function createAggregator(setter) { function createAggregator(setter) {
return function(collection, callback, thisArg) { return function(collection, callback, thisArg) {
var result = {}; var result = {};
callback = lodash.createCallback(callback, thisArg, 3);
callback = lodash.createCallback(callback, thisArg, 3);
if (isArray(collection)) { if (isArray(collection)) {
var index = -1, var index = -1,
length = collection.length; length = collection.length;
@@ -2258,6 +2258,7 @@
*/ */
function findLastIndex(array, callback, thisArg) { function findLastIndex(array, callback, thisArg) {
var length = array ? array.length : 0; var length = array ? array.length : 0;
callback = lodash.createCallback(callback, thisArg, 3); callback = lodash.createCallback(callback, thisArg, 3);
while (length--) { while (length--) {
if (callback(array[length], length, array)) { if (callback(array[length], length, array)) {
@@ -3508,8 +3509,8 @@
*/ */
function every(collection, callback, thisArg) { function every(collection, callback, thisArg) {
var result = true; var result = true;
callback = lodash.createCallback(callback, thisArg, 3);
callback = lodash.createCallback(callback, thisArg, 3);
if (isArray(collection)) { if (isArray(collection)) {
var index = -1, var index = -1,
length = collection.length; length = collection.length;
@@ -3569,8 +3570,8 @@
*/ */
function filter(collection, callback, thisArg) { function filter(collection, callback, thisArg) {
var result = []; var result = [];
callback = lodash.createCallback(callback, thisArg, 3);
callback = lodash.createCallback(callback, thisArg, 3);
if (isArray(collection)) { if (isArray(collection)) {
var index = -1, var index = -1,
length = collection.length; length = collection.length;
@@ -3636,7 +3637,6 @@
*/ */
function find(collection, callback, thisArg) { function find(collection, callback, thisArg) {
callback = lodash.createCallback(callback, thisArg, 3); callback = lodash.createCallback(callback, thisArg, 3);
if (isArray(collection)) { if (isArray(collection)) {
var index = -1, var index = -1,
length = collection.length; length = collection.length;
@@ -4149,8 +4149,8 @@
*/ */
function reduce(collection, callback, accumulator, thisArg) { function reduce(collection, callback, accumulator, thisArg) {
var noaccum = arguments.length < 3; var noaccum = arguments.length < 3;
callback = lodash.createCallback(callback, thisArg, 4);
callback = lodash.createCallback(callback, thisArg, 4);
if (isArray(collection)) { if (isArray(collection)) {
var index = -1, var index = -1,
length = collection.length; length = collection.length;
@@ -4377,8 +4377,8 @@
*/ */
function some(collection, callback, thisArg) { function some(collection, callback, thisArg) {
var result; var result;
callback = lodash.createCallback(callback, thisArg, 3);
callback = lodash.createCallback(callback, thisArg, 3);
if (isArray(collection)) { if (isArray(collection)) {
var index = -1, var index = -1,
length = collection.length; length = collection.length;
@@ -5492,6 +5492,7 @@
*/ */
function findKey(object, callback, thisArg) { function findKey(object, callback, thisArg) {
var result; var result;
callback = lodash.createCallback(callback, thisArg, 3); callback = lodash.createCallback(callback, thisArg, 3);
baseForOwn(object, function(value, key, object) { baseForOwn(object, function(value, key, object) {
if (callback(value, key, object)) { if (callback(value, key, object)) {
@@ -5622,7 +5623,6 @@
*/ */
function forInRight(object, callback, thisArg) { function forInRight(object, callback, thisArg) {
var pairs = []; var pairs = [];
baseForIn(object, function(value, key) { baseForIn(object, function(value, key) {
pairs.push(key, value); pairs.push(key, value);
}); });
@@ -6262,8 +6262,8 @@
*/ */
function mapValues(object, callback, thisArg) { function mapValues(object, callback, thisArg) {
var result = {}; var result = {};
callback = lodash.createCallback(callback, thisArg, 3);
callback = lodash.createCallback(callback, thisArg, 3);
baseForOwn(object, function(value, key, object) { baseForOwn(object, function(value, key, object) {
result[key] = callback(value, key, object); result[key] = callback(value, key, object);
}); });