mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Use eq in assocIndexOf.
This commit is contained in:
@@ -2089,7 +2089,7 @@
|
|||||||
function assocIndexOf(array, key) {
|
function assocIndexOf(array, key) {
|
||||||
var length = array.length;
|
var length = array.length;
|
||||||
while (length--) {
|
while (length--) {
|
||||||
if (array[length][0] === key) {
|
if (eq(array[length][0], key)) {
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user