Skip to content

Commit 8d0e0f3

Browse files
committed
Added comment for forEach
1 parent f20c59a commit 8d0e0f3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib/dom.iterable.d.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ interface NodeList {
1010
* Returns an list of values in the list
1111
*/
1212
entries(): IterableIterator<Node>;
13-
13+
/**
14+
* Executes a provided function once per NodeList element.
15+
*/
1416
forEach(callbackfn: (value: Node, index: number, listObj: NodeList) => void, thisArg?: any): void;
1517
/**
1618
* Returns an list of keys in the list
@@ -30,7 +32,10 @@ interface NodeListOf<TNode extends Node> {
3032
* Returns an list of values in the list
3133
*/
3234
entries(): IterableIterator<TNode>;
33-
35+
36+
/**
37+
* Executes a provided function once per NodeList element.
38+
*/
3439
forEach(callbackfn: (value: TNode, index: number, listObj: NodeListOf<TNode>) => void, thisArg?: any): void;
3540
/**
3641
* Returns an list of keys in the list

0 commit comments

Comments
 (0)