Utilities for building accessible collections for Aria UI
npm install @aria-ui/collection#### Constructors
##### Constructor
new Collection(items, loop): Collection
#### Properties
readonly loop: boolean = true
#### Methods
first(): null \| string
Returns the first enabled value.
getElement(value): null \| HTMLElement
Finds an element from its value.
getValues(): string[]
Returns all values.
last(): null \| string
Returns the last enabled value.
next(value): null \| string
Returns the next enabled value.
prev(value): null \| string
Returns the previous enabled value.
size(): number
type ItemFilter = (options) => boolean
The filter function to determine if an item should be shown in the collection.
const defaultItemFilter: ItemFilter
A simple case-insensitive substring match filter.