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

Method doesExist

www/js/_hyperscript.js:2660–2671  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2658 return value == void 0 || value.length === 0;
2659 }
2660 doesExist(value) {
2661 if (value == null) {
2662 return false;
2663 }
2664 if (this.shouldAutoIterate(value)) {
2665 for (const elt of value) {
2666 return true;
2667 }
2668 return false;
2669 }
2670 return true;
2671 }
2672 // =================================================================
2673 // DOM operations
2674 // =================================================================

Callers 1

resolveMethod · 0.45

Calls 1

shouldAutoIterateMethod · 0.95

Tested by

no test coverage detected