diff --git a/stringify.js b/stringify.js index 124a452..4384173 100644 --- a/stringify.js +++ b/stringify.js @@ -22,6 +22,6 @@ function serializer(replacer, cycleReplacer) { } else stack.push(value) - return replacer == null ? value : replacer.call(this, key, value) + return !replacer ? value : replacer.call(this, key, value) } }