ts-morph-structures

Home > ts-morph-structures > ClassFieldStatementsMap > forEach

ClassFieldStatementsMap.forEach() method

Iterate over the keys and statementss.

Signature:

forEach(__callback__: (statements: ClassFieldStatement[], fieldName: string, statementGroup: string, __collection__: ClassFieldStatementsMap) => void, __thisArg__?: unknown): void;

Parameters

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