UNPKG

@busy-web/utils

Version:

@busy-web util methods

24 lines (23 loc) 749 B
/** * V4 UUID Generator * * Adapted from @orbi/utils: * * --------------------------------------------------------------------------------------------------------- * Fast UUID generator, RFC4122 version 4 compliant. * * @author Jeff Ward (jcward.com). * @license MIT license * @link http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136 * --------------------------------------------------------------------------------------------------------- */ /** * `uuid` * generates a Version 4 UUID using Jeff Ward's high performance generator. * * @public * @method uuid * @returns {string} */ export default function uuid(): string; export declare function isValidUUID(id: string): boolean;