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

Method nullCheck

www/js/_hyperscript-max.js:2651–2655  ·  view source on GitHub ↗
(value, elt)

Source from the content-addressed store, hash-verified

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

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