JavaScript
uid()

uid()

The uid() method returns a random 25-character unique value.

Usage

import { uid } from '@ponsetya/core'

Syntax

uid(): string

Parameters

Returns: string
A string representing the unique value generated.

Examples

const id = uid()
 
console.log(id) // 'ae2353374eee57edfea89ced3'