Home > ts-morph-structures > ClassFieldStatementsMap > forEach
Iterate over the keys and statementss.
Signature:
forEach(__callback__: (statements: ClassFieldStatement[], fieldName: string, statementGroup: string, __collection__: ClassFieldStatementsMap) => void, __thisArg__?: unknown): void;
Parameter | Type | Description |
---|---|---|
__callback__ | (statements: ClassFieldStatement[], fieldName: string, statementGroup: string, __collection__: ClassFieldStatementsMap) => void | A function to invoke for each iteration. |
__thisArg__ | unknown | (Optional) statements to use as this when executing callback. |
Returns:
void