diff --git a/findKey.js b/findKey.js index eefbade76..1cced32f1 100644 --- a/findKey.js +++ b/findKey.js @@ -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 } })