Function

Module: @ember/object
import { guidFor } from '@ember/object/internals';
obj
Object
any object, string, number, Element, or primitive
returns
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.