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

Method shouldAutoIterate

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

Source from the content-addressed store, hash-verified

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 }
2558 forEach(value, func) {
2559 if (value == null) {
2560 } 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