bucketsFindMeasure()
Home > @gooddata/sdk-model > bucketsFindMeasure
bucketsFindMeasure() function
Finds measure matching the provided predicate in a list of buckets.
Signature:
export declare function bucketsFindMeasure(buckets: IBucket[], idOrFun?: string | MeasurePredicate): MeasureInBucket | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
buckets | IBucket[] | list of buckets to search |
idOrFun | string | MeasurePredicate | (Optional) measure predicate or string to find measure by local identifier; defaults to anyMeasure |
Returns:
MeasureInBucket | undefined
first-found measure matching the predicate, undefined if none match
Remarks
See MeasureInBucket