MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / shouldAutoIterate

Method shouldAutoIterate

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

Source from the content-addressed store, hash-verified

2552 return typeof value === "object" && Symbol.iterator in value && typeof value[Symbol.iterator] === "function";
2553 }
2554 shouldAutoIterate(value) {
2555 return value != null && value[SHOULD_AUTO_ITERATE_SYM] || this.#isArrayLike(value);
2556 }
2557 forEach(value, func) {
2558 if (value == null) {
2559 } else if (this.#isIterable(value)) {

Callers 4

#flatGetMethod · 0.95
implicitLoopMethod · 0.95
doesExistMethod · 0.95
resolveMethod · 0.45

Calls 1

#isArrayLikeMethod · 0.95

Tested by

no test coverage detected