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

Method setElement

docs/app/js/sanddance-app.js:71281–71284  ·  view source on GitHub ↗
(row, col, value)

Source from the content-addressed store, hash-verified

71279 return this[col * this.RANK + row];
71280 }
71281 setElement(row, col, value) {
71282 this[col * this.RANK + row] = (0, _validators.checkNumber)(value);
71283 return this;
71284 }
71285 getColumn(columnIndex, result = new Array(this.RANK).fill(-0)) {
71286 const firstIndex = columnIndex * this.RANK;
71287 for(let i = 0; i < this.RANK; ++i)result[i] = this[firstIndex + i];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected