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

Method #isArrayLike

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

Source from the content-addressed store, hash-verified

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

Callers 2

shouldAutoIterateMethod · 0.95
forEachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected