We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
stringify
undefined
1 parent f8510a1 commit aa4580eCopy full SHA for aa4580e
lib/stringify.js
@@ -128,7 +128,7 @@ module.exports = function (object, opts) {
128
var obj = object;
129
var options = opts || {};
130
131
- if (options.encoder !== null && options.encoder !== undefined && typeof options.encoder !== 'function') {
+ if (options.encoder !== null && typeof options.encoder !== 'undefined' && typeof options.encoder !== 'function') {
132
throw new TypeError('Encoder has to be a function.');
133
}
134
0 commit comments