@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.
11 lines (10 loc) • 402 B
TypeScript
type OmitOptions<TRecord, TKey extends keyof TRecord> = {
fields: Array<TKey>;
records: Array<TRecord>;
};
/**
* @description
* Use this helper to omit the specified fields from each record, returning a new array of records without those keys.
*/
export declare const omit: <TRecord, TKey extends keyof TRecord>(options: OmitOptions<TRecord, TKey>) => Array<Omit<TRecord, TKey>>;
export {};