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.

10 lines (9 loc) 285 B
type FirstOptions<TRecord> = { records: Array<TRecord>; }; /** * @description * Use this helper to get the first record in the record set, or null if the record set is empty. */ export declare const first: <TRecord>(options: FirstOptions<TRecord>) => TRecord | null; export {};