Function uuid

  • Generates a monotonically increasing, pseudo-random based uuid-v4 string. These are sortable, url-friendly and are 100% unique if the IDs are generated more than 1 millisecond apart. If two IDs are generated at the same millisecond, the chance of collision is still pretty low (1 in 10^15).

    Returns

    Returns a GUID formatted string.

    Example

    uuid()
    // '183f8ef3-b8f0-4000-81f5-89234c836d00'

    Returns string

Generated using TypeDoc