MCPcopy
hub / github.com/microsoft/SandDance / fromArray

Method fromArray

docs/app/js/sanddance-app.js:69256–69259  ·  view source on GitHub ↗
(array, offset = 0)

Source from the content-addressed store, hash-verified

69254 return new this.constructor().copy(this);
69255 }
69256 fromArray(array, offset = 0) {
69257 for(let i = 0; i < this.ELEMENTS; ++i)this[i] = array[i + offset];
69258 return this.check();
69259 }
69260 toArray(targetArray = [], offset = 0) {
69261 for(let i = 0; i < this.ELEMENTS; ++i)targetArray[offset + i] = this[i];
69262 return targetArray;

Callers

nothing calls this directly

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected