We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19bed1e commit e9e8b42Copy full SHA for e9e8b42
packages/hover-vanilla/src/index.js
@@ -27,9 +27,10 @@ function parseJSON (value) {
27
}
28
29
30
-function parseObject (obj) {
+function parseObject (obj) {function parseObject (obj) {
31
return Object.keys(obj).reduce(function (acc, key) {
32
- return Object.assign(acc, { [key]: parseJSON(obj[key]) })
+ acc[key] = parseJSON(obj[key])
33
+ return acc
34
}, {})
35
36
packages/vanilla/src/index.js
@@ -12,7 +12,8 @@ function parseJSON (value) {
12
13
function parseObject (obj) {
14
15
16
17
18
19
0 commit comments