diff --git a/src/_parser.ts b/src/_parser.ts index bd2f6e6..2a53a0f 100644 --- a/src/_parser.ts +++ b/src/_parser.ts @@ -29,15 +29,15 @@ function toVal(out, key, val, opts) { ? "" : String(val) : typeof val === "boolean" - ? val - : ~opts.boolean.indexOf(key) - ? val === "false" - ? false - : val === "true" || - (out._.push(((x = +val), x * 0 === 0) ? x : val), !!val) - : ((x = +val), x * 0 === 0) - ? x - : val; + ? val + : ~opts.boolean.indexOf(key) + ? val === "false" + ? false + : val === "true" || + (out._.push(((x = +val), x * 0 === 0) ? x : val), !!val) + : ((x = +val), x * 0 === 0) + ? x + : val; out[key] = old == undefined ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt]; }