MCPcopy
hub / github.com/jeromegn/Backbone.localStorage / guid

Function guid

src/utils.js:14–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12 * @returns {string} A GUID-like string.
13 */
14export function guid() {
15 return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
16}
17
18
19/** Returns the localStorage attribute for a model

Callers 1

createMethod · 0.90

Calls 1

s4Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…