ts-morph-structures

Home > ts-morph-structures > ClassFieldStatementsMap > delete

ClassFieldStatementsMap.delete() method

Delete an element from the collection by the given key sequence.

Signature:

delete(fieldName: string, statementGroup: string): boolean;

Parameters

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.