refactor: Prevent for-each calls

This commit is contained in:
Joachim Van Herwegen
2023-10-30 16:58:39 +01:00
parent 20d4a0c3af
commit c9e4c7041c
7 changed files with 13 additions and 9 deletions

View File

@@ -70,6 +70,7 @@ describe('A HashMap', (): void => {
it('supports a forEach call.', async(): Promise<void> => {
const result: string[] = [];
// eslint-disable-next-line unicorn/no-array-for-each
map.forEach((value): void => {
result.push(value.field3);
});