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

Method doesExist

www/js/_hyperscript.esm.js:2658–2669  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

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

Callers 1

resolveMethod · 0.45

Calls 1

shouldAutoIterateMethod · 0.95

Tested by

no test coverage detected