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

Method _initializeStats

docs/app/js/sanddance-app.js:54859–54862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54857 return table;
54858 }
54859 _initializeStats() {
54860 let stats = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
54861 stats.forEach((stat)=>this._getOrCreate(stat));
54862 }
54863 _getOrCreate(stat) {
54864 if (!stat || !stat.name) return null;
54865 const { name , type } = stat;

Callers 1

constructorMethod · 0.95

Calls 2

_getOrCreateMethod · 0.95
forEachMethod · 0.45

Tested by

no test coverage detected