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

Method shouldAutoIterate

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

Source from the content-addressed store, hash-verified

2554 return typeof value === "object" && Symbol.iterator in value && typeof value[Symbol.iterator] === "function";
2555 }
2556 shouldAutoIterate(value) {
2557 return value != null && value[SHOULD_AUTO_ITERATE_SYM] || this.#isArrayLike(value);
2558 }
2559 forEach(value, func) {
2560 if (value == null) {
2561 } 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