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