(value, func)
| 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)) { |
| 2549 | for (const nth of value) { |
| 2550 | func(nth); |
| 2551 | } |
| 2552 | } else if (this.#isArrayLike(value)) { |
| 2553 | for (var i = 0; i < value.length; i++) { |
| 2554 | func(value[i]); |
| 2555 | } |
| 2556 | } else { |
| 2557 | func(value); |
| 2558 | } |
| 2559 | } |
| 2560 | implicitLoop(value, func) { |
| 2561 | if (this.shouldAutoIterate(value)) { |
| 2562 | for (const x of value) func(x); |
no test coverage detected