Browse Source

style: rename function given to forEach as iteratorFn

pull/3582/head
Arman Ozak 7 years ago
parent
commit
92fcf0de34
  1. 4
      npm/packs/utils/projects/utils/src/lib/linked-list.ts

4
npm/packs/utils/projects/utils/src/lib/linked-list.ts

@ -354,9 +354,9 @@ export class LinkedList<T = any> {
return -1; return -1;
} }
forEach<R = boolean>(callback: ListIteratorFn<T, R>) { forEach<R = boolean>(iteratorFn: ListIteratorFn<T, R>) {
for (let node = this.first, position = 0; node; position++, node = node.next) { for (let node = this.first, position = 0; node; position++, node = node.next) {
callback(node, position, this); iteratorFn(node, position, this);
} }
} }

Loading…
Cancel
Save