File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ var stringify = function stringify(
119
119
120
120
for ( var j = 0 ; j < objKeys . length ; ++ j ) {
121
121
var key = objKeys [ j ] ;
122
- var value = typeof key === 'object' && key . value !== undefined ? key . value : obj [ key ] ;
122
+ var value = typeof key === 'object' && typeof key . value !== ' undefined' ? key . value : obj [ key ] ;
123
123
124
124
if ( skipNulls && value === null ) {
125
125
continue ;
@@ -154,7 +154,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
154
154
return defaults ;
155
155
}
156
156
157
- if ( opts . encoder !== null && opts . encoder !== undefined && typeof opts . encoder !== 'function' ) {
157
+ if ( opts . encoder !== null && typeof opts . encoder !== ' undefined' && typeof opts . encoder !== 'function' ) {
158
158
throw new TypeError ( 'Encoder has to be a function.' ) ;
159
159
}
160
160
You can’t perform that action at this time.
0 commit comments