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) 420 B
type PickOptions<TRecord, TKey extends keyof TRecord> = { fields: Array<TKey>; records: Array<TRecord>; }; /** * @method * @description * Use this method to pick only the specified fields from each record, returning a new array of records with only those keys. */ export declare const pick: <TRecord, TKey extends keyof TRecord>(options: PickOptions<TRecord, TKey>) => Array<Pick<TRecord, TKey>>; export {};