We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
stringify
undefined
1 parent 6024134 commit 65c669eCopy full SHA for 65c669e
lib/stringify.js
@@ -147,7 +147,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
147
return defaults;
148
}
149
150
- if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
+ if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
151
throw new TypeError('Encoder has to be a function.');
152
153
0 commit comments