MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / set

Method set

www/js/_hyperscript.esm.js:4518–4521  ·  view source on GitHub ↗
(ctx, lhs, value)

Source from the content-addressed store, hash-verified

4516 return { root: this.root, index: this.firstIndex };
4517 }
4518 set(ctx, lhs, value) {
4519 ctx.meta.runtime.nullCheck(lhs.root, this.root);
4520 lhs.root[lhs.index] = value;
4521 }
4522 delete(ctx, lhs) {
4523 if (this.andBefore || this.andAfter) {
4524 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