Uuid
Generates a random UUID (Universally Unique Identifier).
| Category | Functions |
| Author | Pol Gubau |
| Since | 1.0.0 |
| Last Updated | 2025-03-15 |
| Type | Sync |
| Compatibility | Universal |
Example
Input
uuid()Output:
xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
Return
Returns the generated UUID as a string.
Type: string
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| limit | number | null | No | Limits the length of the UUID string if provided. |
Notes
The UUID follows the version 4 format, which uses random values.
Tags
- UUID
- identifier
- random