From 92fcf0de3409cda844fa7ea38f9d32ab372309aa Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Mon, 13 Apr 2020 11:52:07 +0300 Subject: [PATCH] style: rename function given to forEach as iteratorFn --- npm/packs/utils/projects/utils/src/lib/linked-list.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/packs/utils/projects/utils/src/lib/linked-list.ts b/npm/packs/utils/projects/utils/src/lib/linked-list.ts index f0b50836ce..636ddcb5ef 100644 --- a/npm/packs/utils/projects/utils/src/lib/linked-list.ts +++ b/npm/packs/utils/projects/utils/src/lib/linked-list.ts @@ -354,9 +354,9 @@ export class LinkedList { return -1; } - forEach(callback: ListIteratorFn) { + forEach(iteratorFn: ListIteratorFn) { for (let node = this.first, position = 0; node; position++, node = node.next) { - callback(node, position, this); + iteratorFn(node, position, this); } }