@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
17 lines (16 loc) • 466 B
JavaScript
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
v3.2.1 */
function gen(counts) {
return counts.map((count) => {
let out = "";
for (let i = 0; i < count; i++) {
out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
}
return out;
}).join("-");
}
const guid = () => gen([2, 1, 1, 1, 3]);
export {
guid as g
};