MCPcopy Index your code
hub / github.com/microsoft/SandDance / intern_get

Function intern_get

docs/app/js/sanddance-app.js:110722–110725  ·  view source on GitHub ↗
({ _intern , _key  }, value)

Source from the content-addressed store, hash-verified

110720 }
110721}
110722function intern_get({ _intern , _key }, value) {
110723 const key = _key(value);
110724 return _intern.has(key) ? _intern.get(key) : value;
110725}
110726function intern_set({ _intern , _key }, value) {
110727 const key = _key(value);
110728 if (_intern.has(key)) return _intern.get(key);

Callers 3

getMethod · 0.70
hasMethod · 0.70
hasMethod · 0.70

Calls 2

hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected