diff --git a/lib/parse.js b/lib/parse.js index 91385166..5b69cbd3 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -6,7 +6,6 @@ var has = Object.prototype.hasOwnProperty; var isArray = Array.isArray; var defaults = { - allowEmptyArrays: false, allowDots: false, allowEmptyArrays: false, allowPrototypes: false, @@ -223,7 +222,6 @@ var normalizeParseOptions = function normalizeParseOptions(opts) { var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; return { - allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? opts.allowEmptyArrays : defaults.allowEmptyArrays, allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays, allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, diff --git a/lib/stringify.js b/lib/stringify.js index b7f464f1..fa158cad 100644 --- a/lib/stringify.js +++ b/lib/stringify.js @@ -28,7 +28,6 @@ var toISO = Date.prototype.toISOString; var defaultFormat = formats['default']; var defaults = { - allowEmptyArrays: false, addQueryPrefix: false, allowDots: false, allowEmptyArrays: false, @@ -240,7 +239,6 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { } return { - allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? opts.allowEmptyArrays : defaults.allowEmptyArrays, addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,