Function
guidFor (obj) String public
Module: | @ember/object |
---|
Defined in packages/@ember/-internals/utils/lib/guid.ts:86
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.
© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/functions/@ember%2Fobject%2Finternals/guidFor