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

Method nullCheck

www/js/_hyperscript.js:2652–2656  ·  view source on GitHub ↗
(value, elt)

Source from the content-addressed store, hash-verified

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

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