mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +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.
|
||||
*/
|
||||
function getIndexOf() {
|
||||
var result = (result = lodash.indexOf) === indexOf ? baseIndexOf : result;
|
||||
return result;
|
||||
var result = lodash.indexOf || indexOf;
|
||||
return result === indexOf ? baseIndexOf : result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user