Skip to content

Commit f43dd23

Browse files
committedMay 30, 2020
fix: remove needless recursive call for object keys
1 parent ff11464 commit f43dd23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ function toVal(mix) {
1111
}
1212
} else {
1313
for (k in mix) {
14-
if (mix[k] && (y = toVal(k))) {
14+
if (mix[k]) {
1515
str && (str += ' ');
16-
str += y;
16+
str += k;
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)
Please sign in to comment.