File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ var stringify = function stringify(
118
118
var objKeys ;
119
119
if ( generateArrayPrefix === 'comma' && isArray ( obj ) ) {
120
120
// we need to join elements in
121
- objKeys = [ { value : obj . length > 0 ? obj . join ( ',' ) || null : undefined } ] ;
121
+ objKeys = [ { value : obj . length > 0 ? obj . join ( ',' ) || null : void undefined } ] ;
122
122
} else if ( isArray ( filter ) ) {
123
123
objKeys = filter ;
124
124
} else {
@@ -128,7 +128,7 @@ var stringify = function stringify(
128
128
129
129
for ( var j = 0 ; j < objKeys . length ; ++ j ) {
130
130
var key = objKeys [ j ] ;
131
- var value = typeof key === 'object' && key . value !== undefined ? key . value : obj [ key ] ;
131
+ var value = typeof key === 'object' && typeof key . value !== ' undefined' ? key . value : obj [ key ] ;
132
132
133
133
if ( skipNulls && value === null ) {
134
134
continue ;
@@ -164,7 +164,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
164
164
return defaults ;
165
165
}
166
166
167
- if ( opts . encoder !== null && opts . encoder !== undefined && typeof opts . encoder !== 'function' ) {
167
+ if ( opts . encoder !== null && typeof opts . encoder !== ' undefined' && typeof opts . encoder !== 'function' ) {
168
168
throw new TypeError ( 'Encoder has to be a function.' ) ;
169
169
}
170
170
You can’t perform that action at this time.
0 commit comments