From 6b1d83c968b769206302c440ba0cc894cbd5209d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 14 Apr 2019 22:05:23 -0700 Subject: [PATCH] Fix typo in toPlainObject(). --- toPlainObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }