MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / set

Method set

www/js/_hyperscript.js:4520–4523  ·  view source on GitHub ↗
(ctx, lhs, value)

Source from the content-addressed store, hash-verified

4518 return { root: this.root, index: this.firstIndex };
4519 }
4520 set(ctx, lhs, value) {
4521 ctx.meta.runtime.nullCheck(lhs.root, this.root);
4522 lhs.root[lhs.index] = value;
4523 }
4524 delete(ctx, lhs) {
4525 if (this.andBefore || this.andAfter) {
4526 throw new Error("Cannot remove a slice - use a single index");

Callers

nothing calls this directly

Calls 1

nullCheckMethod · 0.45

Tested by

no test coverage detected