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

Method nullCheck

tools/common/_hyperscript.iife.js:2639–2643  ·  view source on GitHub ↗
(value, elt)

Source from the content-addressed store, hash-verified

2637 return typeof ctor === "function" && value instanceof ctor;
2638 }
2639 nullCheck(value, elt) {
2640 if (value == null) {
2641 throw new Error("'" + elt.sourceFor() + "' is null");
2642 }
2643 }
2644 isEmpty(value) {
2645 return value == void 0 || value.length === 0;
2646 }

Callers 15

setMethod · 0.45
setMethod · 0.45
setMethod · 0.45
resolveMethod · 0.45
setMethod · 0.45
setMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
toggleMethod · 0.45

Calls 1

sourceForMethod · 0.45

Tested by

no test coverage detected