function
Source: bucketArray.ts ↗
bucketsFindAttribute()
Finds attribute matching the provided predicate in a list of buckets.
export declare function bucketsFindAttribute(buckets: IBucket[], idOrFun?: string | AttributePredicate): AttributeInBucket | undefined;
Parameters
Parameter | Type | Description |
|---|---|---|
buckets | IBucket[] | list of buckets to search |
idOrFun | string | AttributePredicate | (Optional) attribute predicate or string to find attribute by local identifier; defaults to anyAttribute |
Returns
AttributeInBucket | undefined
first-found attribute matching the predicate, undefined if none match