* Execute a callback for each entry in the collection
(
callbackfn: (
value: WithVirtualProps<TOutput, TKey>,
key: TKey,
index: number,
) => void,
)
| 539 | * Execute a callback for each entry in the collection |
| 540 | */ |
| 541 | public forEach( |
| 542 | callbackfn: ( |
| 543 | value: WithVirtualProps<TOutput, TKey>, |
| 544 | key: TKey, |
| 545 | index: number, |
| 546 | ) => void, |
| 547 | ): void { |
| 548 | let index = 0 |
| 549 | for (const [key, value] of this.entries()) { |
| 550 | callbackfn(value, key, index++) |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | /** |
| 555 | * Create a new array with the results of calling a function for each entry in the collection |
no test coverage detected