@wazapp/utils
Utils are a bunch of functionalities that can make your life easier. They are used internally by Wazapp packages, but you are encourage to use them as well.
API
guidFor
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, string, number, whatever...
You can also use this method on DOM Element objects.
API
Properties:
value
:any
- value for which the guid will be generatedsuffix
:string
- optional suffix
Example
uuid
Exposes: https://github.com/ai/nanoid
Example
Last updated
Was this helpful?