(value, func)
| 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)) { |
| 2561 | for (const nth of value) { |
| 2562 | func(nth); |
| 2563 | } |
| 2564 | } else if (this.#isArrayLike(value)) { |
| 2565 | for (var i = 0; i < value.length; i++) { |
| 2566 | func(value[i]); |
| 2567 | } |
| 2568 | } else { |
| 2569 | func(value); |
| 2570 | } |
| 2571 | } |
| 2572 | implicitLoop(value, func) { |
| 2573 | if (this.shouldAutoIterate(value)) { |
| 2574 | for (const x of value) func(x); |
no test coverage detected