diff --git a/lib/logger.js b/lib/logger.js index 8d6554b..0a83b25 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -29,7 +29,7 @@ var formatters = { function Logger(options) { var defaults = JSON.parse(JSON.stringify(Logger.DEFAULTS)); - options = Object.assign(defaults, options || {}); + options = Object.assign(defaults, options ?? {}); var catcher = deLiner(); var emitter = catcher; var transforms = [