Skip to content

randomId

kherP edited this page Jan 2, 2020 · 2 revisions

This utility generates a random unique ID.

Example

const result = randomId("seeder");
console.log(result); // "seeder-1577066335952.1506"

Properties

Param Type Description
seed string A seed to be inserted to the random ID to ensure further uniqueness
Clone this wiki locally