ts-morph-structures

Home > ts-morph-structures > ClassFieldStatementsMap > has

ClassFieldStatementsMap.has() method

Report if the collection has a statements for a key set.

Signature:

has(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 the key set refers to a statements in the collection.