lib/stringify.js
/**
   * Stringifies a typeof object to a CKT string
   * @param {object} object - Object to stringify
   * @returns {string|undefined}
   */
Stringifies a typeof object to a CKT string
@param {object} object - Object to stringify
@returns {string|undefined}
Stringifies a typeof object to a CKT string @param { object } object - Object to stringify @returns { string|undefined }
function stringifyObject(object) {
    if (typeof object.toJSON === 'function') {
      return stringifyValue(object.toJSON());
    }
    var objectPrototype = _Object.getPrototypeOf(object);
    if (objectPrototype === null || objectPrototype === _Object_prototype || _Array.isArray(object)) {
      return stringifyPureObject(object);
    }
    if (object instanceof _String || object instanceof _Number || object instanceof _Boolean) {
      return stringifyValue(object.valueOf());
    }
  }
function stringifyObject ( object ) { if ( typeof object . toJSON === 'function' ) { return stringifyValue ( object . toJSON ( ) ) ; } var objectPrototype = _Object . getPrototypeOf ( object ) ; if ( objectPrototype === null || objectPrototype === _Object_prototype || _Array . isArray ( object ) ) { return stringifyPureObject ( object ) ; } if ( object instanceof _String || object instanceof _Number || object instanceof _Boolean ) { return stringifyValue ( object . valueOf ( ) ) ; } }
Stringifies a typeof object to a CKT string
 @param {object} object - Object to stringify
 @returns {string|undefined}
Stringifies a typeof object to a CKT string @param { object } object - Object to stringify @returns { string|undefined }