mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.0.0.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import isArrayLike from './isArrayLike';
|
||||
import eq from '../eq';
|
||||
import isArrayLike from '../isArrayLike';
|
||||
import isIndex from './isIndex';
|
||||
import isObject from '../lang/isObject';
|
||||
import isObject from '../isObject';
|
||||
|
||||
/**
|
||||
* Checks if the provided arguments are from an iteratee call.
|
||||
@@ -19,8 +20,7 @@ function isIterateeCall(value, index, object) {
|
||||
if (type == 'number'
|
||||
? (isArrayLike(object) && isIndex(index, object.length))
|
||||
: (type == 'string' && index in object)) {
|
||||
var other = object[index];
|
||||
return value === value ? (value === other) : (other !== other);
|
||||
return eq(object[index], value);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user