(value, func)
| 558 | } |
| 559 | |
| 560 | forEach(value, func) { |
| 561 | if (value == null) { |
| 562 | // do nothing |
| 563 | } else if (this.#isIterable(value)) { |
| 564 | for (const nth of value) { |
| 565 | func(nth); |
| 566 | } |
| 567 | } else if (this.#isArrayLike(value)) { |
| 568 | for (var i = 0; i < value.length; i++) { |
| 569 | func(value[i]); |
| 570 | } |
| 571 | } else { |
| 572 | func(value); |
| 573 | } |
| 574 | } |
| 575 | |
| 576 | implicitLoop(value, func) { |
| 577 | if (this.shouldAutoIterate(value)) { |
no test coverage detected