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

Method #isIterable

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

Source from the content-addressed store, hash-verified

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

Callers 1

forEachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected