MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / #isIterable

Method #isIterable

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

Source from the content-addressed store, hash-verified

2538 return Array.isArray(value) || typeof NodeList !== "undefined" && (value instanceof NodeList || value instanceof HTMLCollection || value instanceof FileList);
2539 }
2540 #isIterable(value) {
2541 return typeof value === "object" && Symbol.iterator in value && typeof value[Symbol.iterator] === "function";
2542 }
2543 shouldAutoIterate(value) {
2544 return value != null && value[SHOULD_AUTO_ITERATE_SYM] || this.#isArrayLike(value);
2545 }

Callers 1

forEachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected