mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Rename noIterator to noIteratee. [ci skip]
This commit is contained in:
16
lodash.js
16
lodash.js
@@ -5090,11 +5090,11 @@
|
|||||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||||
iteratee = null;
|
iteratee = null;
|
||||||
}
|
}
|
||||||
var noIterator = iteratee == null,
|
var noIteratee = iteratee == null,
|
||||||
isArr = noIterator && isArray(collection),
|
isArr = noIteratee && isArray(collection),
|
||||||
isStr = !isArr && isString(collection);
|
isStr = !isArr && isString(collection);
|
||||||
|
|
||||||
if (noIterator && !isStr) {
|
if (noIteratee && !isStr) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
iterable = toIterable(collection),
|
iterable = toIterable(collection),
|
||||||
length = iterable.length;
|
length = iterable.length;
|
||||||
@@ -5106,7 +5106,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
iteratee = (noIterator && isStr)
|
iteratee = (noIteratee && isStr)
|
||||||
? charAtCallback
|
? charAtCallback
|
||||||
: getCallback(iteratee, thisArg, 3);
|
: getCallback(iteratee, thisArg, 3);
|
||||||
|
|
||||||
@@ -5173,11 +5173,11 @@
|
|||||||
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
if ((type == 'number' || type == 'string') && thisArg && thisArg[iteratee] === collection) {
|
||||||
iteratee = null;
|
iteratee = null;
|
||||||
}
|
}
|
||||||
var noIterator = iteratee == null,
|
var noIteratee = iteratee == null,
|
||||||
isArr = noIterator && isArray(collection),
|
isArr = noIteratee && isArray(collection),
|
||||||
isStr = !isArr && isString(collection);
|
isStr = !isArr && isString(collection);
|
||||||
|
|
||||||
if (noIterator && !isStr) {
|
if (noIteratee && !isStr) {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
iterable = toIterable(collection),
|
iterable = toIterable(collection),
|
||||||
length = iterable.length;
|
length = iterable.length;
|
||||||
@@ -5189,7 +5189,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
iteratee = (noIterator && isStr)
|
iteratee = (noIteratee && isStr)
|
||||||
? charAtCallback
|
? charAtCallback
|
||||||
: getCallback(iteratee, thisArg, 3);
|
: getCallback(iteratee, thisArg, 3);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user