MCPcopy Create free account
hub / github.com/devforth/painterro / genId

Function genId

js/utils.js:1–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export function genId() {
2 let text = "ptro";
3 const possible =
4 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
5 for (let i = 0; i < 20; i += 1) {
6 text += possible.charAt(Math.floor(Math.random() * possible.length));
7 }
8 return text;
9}
10
11export function addDocumentObjectHelpers() {
12 if (!("documentOffsetTop" in Element.prototype)) {

Callers 3

constructorMethod · 0.90
setActiveToolMethod · 0.90
controlObjToStringMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…