MCPcopy
hub / github.com/alyssaxuu/motionity / normalizeKey

Function normalizeKey

src/js/libraries/localbase.js:1432–1440  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

1430}
1431
1432function normalizeKey(key) {
1433 // Cast the key to a string, as that's all we can set as a key.
1434 if (typeof key !== 'string') {
1435 console.warn(key + ' used as a key, but it is not a string.');
1436 key = String(key);
1437 }
1438
1439 return key;
1440}
1441
1442function getCallback() {
1443 if (arguments.length && typeof arguments[arguments.length - 1] === 'function') {

Callers 9

getItemFunction · 0.85
setItemFunction · 0.85
removeItemFunction · 0.85
getItem$1Function · 0.85
_setItemFunction · 0.85
removeItem$1Function · 0.85
getItem$2Function · 0.85
removeItem$2Function · 0.85
setItem$2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected