Function

guidFor (obj) String public

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, Ember.Object-based or not, but be aware that it will add a _guid property.

You can also use this method on DOM Element objects.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/2.18/functions/@ember%2Fobject%2Finternals/guidFor