@@ -80,7 +80,7 @@ var stringify = function stringify(
80
80
var tmpSc = sideChannel ;
81
81
var step = 0 ;
82
82
var findFlag = false ;
83
- while ( ( tmpSc = tmpSc . get ( sentinel ) ) !== undefined && ! findFlag ) {
83
+ while ( ( tmpSc = tmpSc . get ( sentinel ) ) !== void undefined && ! findFlag ) {
84
84
// Where object last appeared in the ref tree
85
85
var pos = tmpSc . get ( object ) ;
86
86
step += 1 ;
@@ -142,7 +142,7 @@ var stringify = function stringify(
142
142
var objKeys ;
143
143
if ( generateArrayPrefix === 'comma' && isArray ( obj ) ) {
144
144
// we need to join elements in
145
- objKeys = [ { value : obj . length > 0 ? obj . join ( ',' ) || null : undefined } ] ;
145
+ objKeys = [ { value : obj . length > 0 ? obj . join ( ',' ) || null : void undefined } ] ;
146
146
} else if ( isArray ( filter ) ) {
147
147
objKeys = filter ;
148
148
} else {
@@ -152,7 +152,7 @@ var stringify = function stringify(
152
152
153
153
for ( var j = 0 ; j < objKeys . length ; ++ j ) {
154
154
var key = objKeys [ j ] ;
155
- var value = typeof key === 'object' && key . value !== undefined ? key . value : obj [ key ] ;
155
+ var value = typeof key === 'object' && typeof key . value !== ' undefined' ? key . value : obj [ key ] ;
156
156
157
157
if ( skipNulls && value === null ) {
158
158
continue ;
@@ -192,7 +192,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
192
192
return defaults ;
193
193
}
194
194
195
- if ( opts . encoder !== null && opts . encoder !== undefined && typeof opts . encoder !== 'function' ) {
195
+ if ( opts . encoder !== null && typeof opts . encoder !== ' undefined' && typeof opts . encoder !== 'function' ) {
196
196
throw new TypeError ( 'Encoder has to be a function.' ) ;
197
197
}
198
198
0 commit comments