Home > ts-morph-structures > ClassFieldStatementsMap > has
Report if the collection has a statements for a key set.
Signature:
has(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 the key set refers to a statements in the collection.