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

Method toArray

docs/tests/v3/es6/js/sanddance-test-es6.js:17191–17194  ·  view source on GitHub ↗
(targetArray = [], offset = 0)

Source from the content-addressed store, hash-verified

17189 return this.check();
17190 }
17191 toArray(targetArray = [], offset = 0) {
17192 for(let i = 0; i < this.ELEMENTS; ++i)targetArray[offset + i] = this[i];
17193 return targetArray;
17194 }
17195 from(arrayOrObject) {
17196 return Array.isArray(arrayOrObject) ? this.copy(arrayOrObject) : this.fromObject(arrayOrObject);
17197 }

Callers 1

toMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected