Home > ts-morph-structures > ClassFieldStatementsMap > delete
Delete an element from the collection by the given key sequence.
Signature:
delete(fieldName: string, statementGroup: string): boolean;
Parameter | Type | Description |
---|---|---|
fieldName | string | The class field name for the statements. |
statementGroup | string | The statement group owning the statements. |
Returns:
boolean
True if we found the statements and deleted it.