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

Method doesExist

tools/common/_hyperscript.iife.js:2647–2658  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2645 return value == void 0 || value.length === 0;
2646 }
2647 doesExist(value) {
2648 if (value == null) {
2649 return false;
2650 }
2651 if (this.shouldAutoIterate(value)) {
2652 for (const elt of value) {
2653 return true;
2654 }
2655 return false;
2656 }
2657 return true;
2658 }
2659 // =================================================================
2660 // DOM operations
2661 // =================================================================

Callers 1

resolveMethod · 0.45

Calls 1

shouldAutoIterateMethod · 0.95

Tested by

no test coverage detected