UNPKG

@discoveryjs/discovery

Version:

Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards

8 lines (7 loc) 182 B
export function randomId() { return [ performance.timeOrigin.toString(16), (1e4 * performance.now()).toString(16), Math.random().toString(16).slice(2) ].join("-"); }