Skip to content

Commit db878ad

Browse files
committed
changed forEach comment
1 parent 8d0e0f3 commit db878ad

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/lib/dom.iterable.d.ts

+10-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ interface NodeList {
1010
* Returns an list of values in the list
1111
*/
1212
entries(): IterableIterator<Node>;
13-
/**
14-
* Executes a provided function once per NodeList element.
15-
*/
13+
/**
14+
* Performs the specified action for each node in an list.
15+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
16+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
17+
*/
1618
forEach(callbackfn: (value: Node, index: number, listObj: NodeList) => void, thisArg?: any): void;
1719
/**
1820
* Returns an list of keys in the list
@@ -33,9 +35,11 @@ interface NodeListOf<TNode extends Node> {
3335
*/
3436
entries(): IterableIterator<TNode>;
3537

36-
/**
37-
* Executes a provided function once per NodeList element.
38-
*/
38+
/**
39+
* Performs the specified action for each node in an list.
40+
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
41+
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
42+
*/
3943
forEach(callbackfn: (value: TNode, index: number, listObj: NodeListOf<TNode>) => void, thisArg?: any): void;
4044
/**
4145
* Returns an list of keys in the list

0 commit comments

Comments
 (0)