New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@aria-ui/collection

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aria-ui/collection

## Collection #

0.0.5
latest
Version published
Weekly downloads
3.5K
22.11%
Maintainers
1
Weekly downloads
 
Created

@aria-ui/collection

Collection #

constructor

new Collection(items: Iterable<HTMLElement>, loop?: boolean): Collection

loop: boolean

first

Returns the first enabled value.

const first: () => null | string;

getElement

Finds an element from its value.

const getElement: (value: string) => null | HTMLElement;

getValues

Returns all values.

const getValues: () => string[];

last

Returns the last enabled value.

const last: () => null | string;

next

Returns the next enabled value.

const next: (value: null | string) => null | string;

prev

Returns the previous enabled value.

const prev: (value: null | string) => null | string;

size

const size: () => number;

ItemFilter #

The filter function to determine if an item should be shown in the collection.

Type: (options: { query: string; value: string }) => boolean

defaultItemFilter #

A simple case-insensitive substring match filter.

function defaultItemFilter(options: { query: string; value: string }): boolean;

FAQs

Package last updated on 13 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts