Fix typo in findKey.

This commit is contained in:
John-David Dalton
2017-08-07 01:18:04 -07:00
parent c2616dd4f3
commit a0a3a6af91

View File

@@ -28,7 +28,7 @@ function findKey(object, predicate) {
Object.keys(object).some((key) => {
const value = object[key]
if (predicate(value, key, object)) {
result = value
result = key
return true
}
})