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

Method nullCheck

www/js/_hyperscript.esm.js:2650–2654  ·  view source on GitHub ↗
(value, elt)

Source from the content-addressed store, hash-verified

2648 return typeof ctor === "function" && value instanceof ctor;
2649 }
2650 nullCheck(value, elt) {
2651 if (value == null) {
2652 throw new Error("'" + elt.sourceFor() + "' is null");
2653 }
2654 }
2655 isEmpty(value) {
2656 return value == void 0 || value.length === 0;
2657 }

Callers 15

setMethod · 0.45
deleteMethod · 0.45
setMethod · 0.45
deleteMethod · 0.45
setMethod · 0.45
resolveMethod · 0.45
setMethod · 0.45
setMethod · 0.45
deleteMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45
resolveMethod · 0.45

Calls 1

sourceForMethod · 0.45

Tested by

no test coverage detected