function
Source: HeaderPredicateFactory.ts ↗
identifierMatch()
Creates a new predicate that returns true for any header that belongs to either attribute or measure with the provided identifier.
export declare function identifierMatch(identifier: string, type?: ObjectType): IHeaderPredicate;
Parameters
Parameter | Type | Description |
|---|---|---|
identifier | string | |
type | (Optional) |
Returns
Remarks
Passing a type narrows the match to a header whose ref names both that identifier and that type. This is the only way to tell a computed attribute from a label of the same identifier: a computed attribute has no labels and is referenced directly, so the identifier alone matches either.