lib/utility.js
function toPrintable(exclude, noColor) {
    var str = '{ ' + ( this._typeName ? 'T:' + this._typeName.bold : '');
    if (typeof exclude !== 'object') {
        noColor = exclude;
        exclude = {};
    }
    for (var prop in this) {
        if ('_' !== prop.charAt(0) && exclude[prop] !== true) {
            var pair = value2String(prop, this[prop], exclude[prop], noColor);
            if (pair.value !== undefined) {
                str = str.slice(-1) === ' ' ? str : str + ', ';
                str += (noColor ? pair.prop : pair.prop.bold.cyan) + ': ' + pair.value;
            }
        }
    }
    str += ' }';
    return str;
}
function toPrintable(exclude, noColor) {
    var str = '{ ' + ( this._typeName ? 'T:' + this._typeName.bold : '');
    if (typeof exclude !== 'object') {
        noColor = exclude;
        exclude = {};
    }
    for (var prop in this) {
        if ('_' !== prop.charAt(0) && exclude[prop] !== true) {
            var pair = value2String(prop, this[prop], exclude[prop], noColor);
            if (pair.value !== undefined) {
                str = str.slice(-1) === ' ' ? str : str + ', ';
                str += (noColor ? pair.prop : pair.prop.bold.cyan) + ': ' + pair.value;
            }
        }
    }
    str += ' }';
    return str;
}
function toPrintable ( exclude , noColor ) { var str = '{ ' + ( this . _typeName ? 'T:' + this . _typeName . bold : '' ) ; if ( typeof exclude !== 'object' ) { noColor = exclude ; exclude = { } ; } for ( var prop in this ) { if ( '_' !== prop . charAt ( 0 ) && exclude [ prop ] !== true ) { var pair = value2String ( prop , this [ prop ] , exclude [ prop ] , noColor ) ; if ( pair . value !== undefined ) { str = str . slice ( - 1 ) === ' ' ? str : str + ', ' ; str += ( noColor ? pair . prop : pair . prop . bold . cyan ) + ': ' + pair . value ; } } } str += ' }' ; return str ; }
Return a printable state of the object
Return a printable state of the object