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

Method set

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

Source from the content-addressed store, hash-verified

4447 return { root: this.root };
4448 }
4449 set(ctx, lhs, value) {
4450 ctx.meta.runtime.nullCheck(lhs.root, this.root);
4451 ctx.meta.runtime.implicitLoop(lhs.root, (elt) => {
4452 value == null ? elt.removeAttribute(this.attribute.name) : elt.setAttribute(this.attribute.name, value);
4453 });
4454 }
4455};
4456var ArrayIndex = class _ArrayIndex extends Expression {
4457 static grammarName = "arrayIndex";

Callers

nothing calls this directly

Calls 2

nullCheckMethod · 0.45
implicitLoopMethod · 0.45

Tested by

no test coverage detected