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 f43dd23 commit 4fa8811Copy full SHA for 4fa8811
src/index.js
@@ -4,7 +4,7 @@ function toVal(mix) {
4
if (typeof mix === 'object') {
5
if (Array.isArray(mix)) {
6
for (k=0; k < mix.length; k++) {
7
- if (mix[k] && (y = toVal(mix[k]))) {
+ if (y = toVal(mix[k])) {
8
str && (str += ' ');
9
str += y;
10
}
@@ -25,11 +25,13 @@ function toVal(mix) {
25
26
27
export default function () {
28
- var i=0, x, str='';
+ var i=0, tmp, x, str='';
29
while (i < arguments.length) {
30
- if (x = toVal(arguments[i++])) {
31
- str && (str += ' ');
32
- str += x
+ if (tmp = arguments[i++]) {
+ if (x = toVal(tmp)) {
+ str && (str += ' ');
33
+ str += x
34
+ }
35
36
37
return str;
0 commit comments