UNPKG

@future-widget-lab/record-set

Version:

A dedicated data structure for in-memory record collections, offering fluent, immutable APIs for MongoDB-like querying, sorting, and transformation.

12 lines (11 loc) 360 B
import type { Query } from 'sift'; type FindOptions<TRecord> = { query?: Query<TRecord>; records: Array<TRecord>; }; /** * @description * Use this helper to return the index of the first element in the array where predicate is true, and -1 otherwise. */ export declare const findIndex: <TRecord>(options: FindOptions<TRecord>) => number; export {};