UNPKG

191 BTypeScriptView Raw
1/**
2 * Generates a unique ID. If `prefix` is given, the ID is appended to it.
3 * @param prefix The value to prefix the ID with.
4 */
5export default function uniqueId(prefix?: string): string;