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

Method constructor

docs/app/js/sanddance-app.js:54822–54829  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

54820var _statDefault = parcelHelpers.interopDefault(_stat);
54821class Stats {
54822 constructor(options){
54823 (0, _definePropertyDefault.default)(this, "id", void 0);
54824 (0, _definePropertyDefault.default)(this, "stats", {});
54825 this.id = options.id;
54826 this.stats = {};
54827 this._initializeStats(options.stats);
54828 Object.seal(this);
54829 }
54830 get(name) {
54831 let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "count";
54832 return this._getOrCreate({

Callers

nothing calls this directly

Calls 1

_initializeStatsMethod · 0.95

Tested by

no test coverage detected