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

Method #isArrayLike

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

Source from the content-addressed store, hash-verified

2546 // Collection and iteration utilities
2547 // =================================================================
2548 #isArrayLike(value) {
2549 return Array.isArray(value) || typeof NodeList !== "undefined" && (value instanceof NodeList || value instanceof HTMLCollection || value instanceof FileList);
2550 }
2551 #isIterable(value) {
2552 return typeof value === "object" && Symbol.iterator in value && typeof value[Symbol.iterator] === "function";
2553 }

Callers 2

shouldAutoIterateMethod · 0.95
forEachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected