UNPKG

@grafana/faro-core

Version:
10 lines 392 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.genShortID = genShortID; const alphabet = 'abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ0123456789'; function genShortID(length = 10) { return Array.from(Array(length)) .map(() => alphabet[Math.floor(Math.random() * alphabet.length)]) .join(''); } //# sourceMappingURL=shortId.js.map