diff --git a/toPlainObject.js b/toPlainObject.js index 5b62d4744..b19a251dc 100644 --- a/toPlainObject.js +++ b/toPlainObject.js @@ -24,7 +24,7 @@ function toPlainObject(value) { value = Object(value) const result = {} for (const key in value) { - result[key] = value[value] + result[key] = value[key] } return result }