mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Whitespace nits.
This commit is contained in:
16
lodash.js
16
lodash.js
@@ -3826,8 +3826,8 @@
|
|||||||
*/
|
*/
|
||||||
function every(collection, predicate, thisArg) {
|
function every(collection, predicate, thisArg) {
|
||||||
var result = true;
|
var result = true;
|
||||||
|
|
||||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||||
|
|
||||||
if (isArray(collection)) {
|
if (isArray(collection)) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = collection.length;
|
length = collection.length;
|
||||||
@@ -3887,8 +3887,8 @@
|
|||||||
*/
|
*/
|
||||||
function filter(collection, predicate, thisArg) {
|
function filter(collection, predicate, thisArg) {
|
||||||
var result = [];
|
var result = [];
|
||||||
|
|
||||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||||
|
|
||||||
if (isArray(collection)) {
|
if (isArray(collection)) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = collection.length;
|
length = collection.length;
|
||||||
@@ -4469,8 +4469,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;
|
||||||
@@ -4512,8 +4512,8 @@
|
|||||||
*/
|
*/
|
||||||
function reduceRight(collection, callback, accumulator, thisArg) {
|
function reduceRight(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);
|
||||||
|
|
||||||
baseEachRight(collection, function(value, index, collection) {
|
baseEachRight(collection, function(value, index, collection) {
|
||||||
accumulator = noaccum
|
accumulator = noaccum
|
||||||
? (noaccum = false, value)
|
? (noaccum = false, value)
|
||||||
@@ -4623,7 +4623,6 @@
|
|||||||
result[index] = result[rand];
|
result[index] = result[rand];
|
||||||
result[rand] = value;
|
result[rand] = value;
|
||||||
});
|
});
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4698,8 +4697,8 @@
|
|||||||
*/
|
*/
|
||||||
function some(collection, predicate, thisArg) {
|
function some(collection, predicate, thisArg) {
|
||||||
var result;
|
var result;
|
||||||
|
|
||||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||||
|
|
||||||
if (isArray(collection)) {
|
if (isArray(collection)) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = collection.length;
|
length = collection.length;
|
||||||
@@ -6703,8 +6702,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);
|
||||||
});
|
});
|
||||||
@@ -8227,10 +8226,11 @@
|
|||||||
*/
|
*/
|
||||||
function times(n, callback, thisArg) {
|
function times(n, callback, thisArg) {
|
||||||
n = n < 0 ? 0 : n >>> 0;
|
n = n < 0 ? 0 : n >>> 0;
|
||||||
|
callback = baseCreateCallback(callback, thisArg, 1);
|
||||||
|
|
||||||
var index = -1,
|
var index = -1,
|
||||||
result = Array(n);
|
result = Array(n);
|
||||||
|
|
||||||
callback = baseCreateCallback(callback, thisArg, 1);
|
|
||||||
while (++index < n) {
|
while (++index < n) {
|
||||||
result[index] = callback(index);
|
result[index] = callback(index);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user