mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
Allow getIndexOf to work when there is no external _.indexOf defined.
This commit is contained in:
@@ -2180,8 +2180,8 @@
|
|||||||
* @returns {Function} Returns the "indexOf" function.
|
* @returns {Function} Returns the "indexOf" function.
|
||||||
*/
|
*/
|
||||||
function getIndexOf() {
|
function getIndexOf() {
|
||||||
var result = (result = lodash.indexOf) === indexOf ? baseIndexOf : result;
|
var result = lodash.indexOf || indexOf;
|
||||||
return result;
|
return result === indexOf ? baseIndexOf : result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user