UNPKG

melt

Version:

The next generation of Melt UI. Built for Svelte 5.

4 lines (3 loc) 322 B
export declare function findNext<T>(array: T[], condition: (item: T) => boolean): T | undefined; export declare function findPrev<T>(array: T[], condition: (item: T) => boolean): T | undefined; export declare function mapAndFilter<From, To>(array: From[], mapper: (item: From) => To, filter: (item: To) => boolean): To[];