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 @@ -111,7 +111,7 @@ var stringify = function stringify(
111111
112112 for ( var j = 0 ; j < objKeys . length ; ++ j ) {
113113 var key = objKeys [ j ] ;
114- var value = typeof key === 'object' && key . value !== undefined ? key . value : obj [ key ] ;
114+ var value = typeof key === 'object' && typeof key . value !== ' undefined' ? key . value : obj [ key ] ;
115115
116116 if ( skipNulls && obj [ key ] === null ) {
117117 continue ;
@@ -160,7 +160,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
160160 return defaults ;
161161 }
162162
163- if ( opts . encoder !== null && opts . encoder !== undefined && typeof opts . encoder !== 'function' ) {
163+ if ( opts . encoder !== null && typeof opts . encoder !== ' undefined' && typeof opts . encoder !== 'function' ) {
164164 throw new TypeError ( 'Encoder has to be a function.' ) ;
165165 }
166166
You can’t perform that action at this time.
0 commit comments