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

Method to

docs/app/js/sanddance-app.js:69267–69270  ·  view source on GitHub ↗
(arrayOrObject)

Source from the content-addressed store, hash-verified

69265 return Array.isArray(arrayOrObject) ? this.copy(arrayOrObject) : this.fromObject(arrayOrObject);
69266 }
69267 to(arrayOrObject) {
69268 if (arrayOrObject === this) return this;
69269 return (0, _common.isArray)(arrayOrObject) ? this.toArray(arrayOrObject) : this.toObject(arrayOrObject);
69270 }
69271 toTarget(target) {
69272 return target ? this.to(target) : this;
69273 }

Callers 1

toTargetMethod · 0.95

Calls 2

toArrayMethod · 0.95
toObjectMethod · 0.45

Tested by

no test coverage detected