ember/ember-3.16.10.template-compiler.js
/**
    Returns a unique id for the object. If the object does not yet have a guid,
    one will be assigned to it. You can call this on any object,
    `EmberObject`-based or not.
  
    You can also use this method on DOM Element objects.
  
    @public
    @static
    @method guidFor
    @for @ember/object/internals
    @param {Object} obj any object, string, number, Element, or primitive
    @return {String} the unique guid for this instance.
  */
Returns a unique id for the object. If the object does not yet have a guid,
one will be assigned to it. You can call this on any object,
`EmberObject`-based or not.

You can also use this method on DOM Element objects.
Returns a unique id for the object . If the object does not yet have a guid one will be assigned to it . You can call this on any object ` EmberObject ` - based or not . You can also use this method on DOM Element objects .
function guidFor(value) {
    var guid;
    if (isObject(value)) {
      guid = OBJECT_GUIDS.get(value);
      if (guid === undefined) {
        guid = GUID_PREFIX + uuid();
        OBJECT_GUIDS.set(value, guid);
      }
    } else {
      guid = NON_OBJECT_GUIDS.get(value);
      if (guid === undefined) {
        var type = typeof value;
        if (type === 'string') {
          guid = 'st' + uuid();
        } else if (type === 'number') {
          guid = 'nu' + uuid();
        } else if (type === 'symbol') {
          guid = 'sy' + uuid();
        } else {
          guid = '(' + value + ')';
        }
        NON_OBJECT_GUIDS.set(value, guid);
      }
    }
    return guid;
  }
function guidFor ( value ) { var guid ; if ( isObject ( value ) ) { guid = OBJECT_GUIDS . get ( value ) ; if ( guid === undefined ) { guid = GUID_PREFIX + uuid ( ) ; OBJECT_GUIDS . set ( value , guid ) ; } } else { guid = NON_OBJECT_GUIDS . get ( value ) ; if ( guid === undefined ) { var type = typeof value ; if ( type === 'string' ) { guid = 'st' + uuid ( ) ; } else if ( type === 'number' ) { guid = 'nu' + uuid ( ) ; } else if ( type === 'symbol' ) { guid = 'sy' + uuid ( ) ; } else { guid = '(' + value + ')' ; } NON_OBJECT_GUIDS . set ( value , guid ) ; } } return guid ; }
Returns a unique id for the object.
Returns a unique id for the object .