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

Method doesExist

src/core/runtime/runtime.js:669–680  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

667 }
668
669 doesExist(value) {
670 if(value == null){
671 return false;
672 }
673 if (this.shouldAutoIterate(value)) {
674 for (const elt of value) {
675 return true;
676 }
677 return false;
678 }
679 return true;
680 }
681
682 // =================================================================
683 // DOM operations

Callers 1

resolveMethod · 0.45

Calls 1

shouldAutoIterateMethod · 0.95

Tested by

no test coverage detected