MCPcopy
hub / github.com/microsoft/SandDance / _traverseMap

Function _traverseMap

docs/app/js/sanddance-app.js:23475–23490  ·  view source on GitHub ↗
(current, inputs)

Source from the content-addressed store, hash-verified

23473 return current.get(value);
23474}
23475function _traverseMap(current, inputs) {
23476 if (typeof inputs === "function") {
23477 var cachedInputsFromStyled = inputs.__cachedInputs__;
23478 if (cachedInputsFromStyled) // The styled helper will generate the styles function and will attach the cached
23479 // inputs (consisting of the default styles, customzied styles, and user provided styles.)
23480 // These should be used as cache keys for deriving the memoized value.
23481 for(var _i = 0, _a = inputs.__cachedInputs__; _i < _a.length; _i++){
23482 var input = _a[_i];
23483 current = _traverseEdge(current, input);
23484 }
23485 else current = _traverseEdge(current, inputs);
23486 } else if (typeof inputs === "object") {
23487 for(var propName in inputs)if (inputs.hasOwnProperty(propName)) current = _traverseEdge(current, inputs[propName]);
23488 }
23489 return current;
23490}
23491function _normalizeValue(value) {
23492 switch(value){
23493 case undefined:

Callers 1

getClassNamesFunction · 0.85

Calls 1

_traverseEdgeFunction · 0.85

Tested by

no test coverage detected