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

Method doesExist

www/js/_hyperscript-max.js:2659–2670  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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

Callers 1

resolveMethod · 0.45

Calls 1

shouldAutoIterateMethod · 0.95

Tested by

no test coverage detected