MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / shouldAutoIterate

Method shouldAutoIterate

tools/common/_hyperscript.iife.js:2543–2545  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2541 return typeof value === "object" && Symbol.iterator in value && typeof value[Symbol.iterator] === "function";
2542 }
2543 shouldAutoIterate(value) {
2544 return value != null && value[SHOULD_AUTO_ITERATE_SYM] || this.#isArrayLike(value);
2545 }
2546 forEach(value, func) {
2547 if (value == null) {
2548 } 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