ember/ember-3.4.8.template-compiler.js
/**
      Convenience method to inspect an object. This method will attempt to
      convert the object into a useful string description.
    
      It is a pretty simple implementation. If you want something more robust,
      use something like JSDump: https://github.com/NV/jsDump
    
      @method inspect
      @static
      @param {Object} obj The object you want to inspect.
      @return {String} A description of the object
      @since 1.4.0
      @private
    */
Convenience method to inspect an object. This method will attempt to
convert the object into a useful string description.

It is a pretty simple implementation.
Convenience method to inspect an object . This method will attempt to convert the object into a useful string description . It is a pretty simple implementation .
function inspectValue(value, depth, seen) {
        var valueIsArray = false;
        switch (typeof value) {
            case 'undefined':
                return 'undefined';
            case 'object':
                if (value === null) return 'null';
                if (isArray(value)) {
                    valueIsArray = true;
                    break;
                }
                if (value.toString === objectToString || value.toString === undefined) {
                    break;
                }
                return value.toString();
            case 'function':
                return value.toString === functionToString ? value.name ? '[Function:' + value.name + ']' : '[Function]' : value.toString();
            case 'string':
                return stringify(value);
            case 'symbol':
            case 'boolean':
            case 'number':
            default:
                return value.toString();
        }
        if (seen === undefined) {
            seen = new WeakSet$1();
        } else {
            if (seen.has(value)) return '[Circular]';
        }
        seen.add(value);
        return valueIsArray ? inspectArray(value, depth + 1, seen) : inspectObject(value, depth + 1, seen);
    }
function inspectValue ( value , depth , seen ) { var valueIsArray = false ; switch ( typeof value ) { case 'undefined' : return 'undefined' ; case 'object' : if ( value === null ) return 'null' ; if ( isArray ( value ) ) { valueIsArray = true ; break ; } if ( value . toString === objectToString || value . toString === undefined ) { break ; } return value . toString ( ) ; case 'function' : return value . toString === functionToString ? value . name ? '[Function:' + value . name + ']' : '[Function]' : value . toString ( ) ; case 'string' : return stringify ( value ) ; case 'symbol' : case 'boolean' : case 'number' : default : return value . toString ( ) ; } if ( seen === undefined ) { seen = new WeakSet$1 ( ) ; } else { if ( seen . has ( value ) ) return '[Circular]' ; } seen . add ( value ) ; return valueIsArray ? inspectArray ( value , depth + 1 , seen ) : inspectObject ( value , depth + 1 , seen ) ; }
Convenience method to inspect an object.
Convenience method to inspect an object .
// is toString Object.prototype.toString or undefined then traverse // custom toString