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

Method #isArrayLike

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

Source from the content-addressed store, hash-verified

2548 // Collection and iteration utilities
2549 // =================================================================
2550 #isArrayLike(value) {
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 }

Callers 2

shouldAutoIterateMethod · 0.95
forEachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected