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

Method from

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

Source from the content-addressed store, hash-verified

69262 return targetArray;
69263 }
69264 from(arrayOrObject) {
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);

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
fromObjectMethod · 0.45

Tested by

no test coverage detected