Skip to content

Commit

Permalink
fix: remove needless recursive call for object keys
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 30, 2020
1 parent ff11464 commit f43dd23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ function toVal(mix) {
}
} else {
for (k in mix) {
if (mix[k] && (y = toVal(k))) {
if (mix[k]) {
str && (str += ' ');
str += y;
str += k;
}
}
}
Expand Down

0 comments on commit f43dd23

Please sign in to comment.