MCPcopy Index your code
hub / github.com/pyscript/pyscript / getID

Function getID

core/src/core.js:124–124  ·  view source on GitHub ↗
(prefix = TYPE)

Source from the content-addressed store, hash-verified

122 // create a unique identifier when/if needed
123 let id = 0;
124 const getID = (prefix = TYPE) => `${prefix}-${id++}`;
125
126 /**
127 * Given a generic DOM Element, tries to fetch the 'src' attribute, if present.

Callers 2

onReadyFunction · 0.70
idMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected