MCPcopy Create free account
hub / github.com/microsoft/SandDance / returnKey

Function returnKey

docs/app/js/sanddance-app.js:41696–41699  ·  view source on GitHub ↗
(acc, current)

Source from the content-addressed store, hash-verified

41694 CommandBarBase1.prototype._computeCacheKey = function(data) {
41695 var primaryItems = data.primaryItems, overflow = data.overflow;
41696 var returnKey = function(acc, current) {
41697 var _a = current.cacheKey, cacheKey = _a === void 0 ? current.key : _a;
41698 return acc + cacheKey;
41699 };
41700 var primaryKey = primaryItems && primaryItems.reduce(returnKey, "");
41701 var overflowKey = overflow ? "overflow" : "";
41702 return [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected