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

Function _normalizeArg

docs/app/js/sanddance-app.js:24095–24102  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

24093 return memoizedGetValue;
24094}
24095function _normalizeArg(val) {
24096 if (!val) return _emptyObject;
24097 else if (typeof val === "object" || typeof val === "function") return val;
24098 else if (!_dictionary[val]) _dictionary[val] = {
24099 val: val
24100 };
24101 return _dictionary[val];
24102}
24103function _createNode() {
24104 return {
24105 map: _weakMap ? new _weakMap() : null

Callers 1

memoizeFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected