code: function stringify(key, value) {
    if (value instanceof RegExp) {
      return value.toString();
    }
    if (value instanceof Function) {
      return '[function]';
    }
    return value;
  }
docs: Makes JSON.stringify print regexps