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

Method #isIterable

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

Source from the content-addressed store, hash-verified

2551 return Array.isArray(value) || typeof NodeList !== "undefined" && (value instanceof NodeList || value instanceof HTMLCollection || value instanceof FileList);
2552 }
2553 #isIterable(value) {
2554 return typeof value === "object" && Symbol.iterator in value && typeof value[Symbol.iterator] === "function";
2555 }
2556 shouldAutoIterate(value) {
2557 return value != null && value[SHOULD_AUTO_ITERATE_SYM] || this.#isArrayLike(value);
2558 }

Callers 1

forEachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected