bucketsAttributes()
Home > @gooddata/sdk-model > bucketsAttributes
bucketsAttributes() function
Gets all attributes matching the provided predicate from a list of buckets.
Signature:
export declare function bucketsAttributes(buckets: IBucket[], predicate?: AttributePredicate): IAttribute[];
Parameters
Parameter |
Type |
Description |
---|---|---|
buckets |
IBucket[] |
list of buckets to get attributes from |
predicate |
(Optional) attribute predicate; anyAttribute is default |
Returns:
empty list if none match
Remarks
If no predicate is provided, then the function defaults to anyAttribute predicate - meaning all attributes will be returned.