selfapi.js
function jsonStringifyWithFunctions (value) {
  function replacer (key, value) {
    if (typeof value === 'function') {
      // Stringify this function, and slightly minify it.
      value = String(value).replace(/\s+/g, ' ');
    }
    return options.jsonStringifyReplacer(key, value);
  }
  return JSON.stringify(value, replacer, options.jsonStringifySpaces);
}
function jsonStringifyWithFunctions (value) {
  function replacer (key, value) {
    if (typeof value === 'function') {
      // Stringify this function, and slightly minify it.
      value = String(value).replace(/\s+/g, ' ');
    }
    return options.jsonStringifyReplacer(key, value);
  }
  return JSON.stringify(value, replacer, options.jsonStringifySpaces);
}
function jsonStringifyWithFunctions ( value ) { function replacer ( key , value ) { if ( typeof value === 'function' ) { // Stringify this function, and slightly minify it. value = String ( value ) . replace ( / \s+ / g , ' ' ) ; } return options . jsonStringifyReplacer ( key , value ) ; } return JSON . stringify ( value , replacer , options . jsonStringifySpaces ) ; }
Stringify everything, including Function bodies.
Stringify everything including Function bodies .