mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Fix typo in findKey.
This commit is contained in:
@@ -28,7 +28,7 @@ function findKey(object, predicate) {
|
|||||||
Object.keys(object).some((key) => {
|
Object.keys(object).some((key) => {
|
||||||
const value = object[key]
|
const value = object[key]
|
||||||
if (predicate(value, key, object)) {
|
if (predicate(value, key, object)) {
|
||||||
result = value
|
result = key
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user