cspell
Version:
A Spelling Checker for Code!
14 lines • 685 B
TypeScript
import type { RemoveUndefined } from './types.js';
export declare const uniqueFn: typeof uniqueFilterFnGenerator;
type FilterFn<T> = (_v: T) => boolean;
export declare function uniqueFilterFnGenerator<T>(): FilterFn<T>;
export declare function uniqueFilterFnGenerator<T, U>(extractFn: (v: T) => U): FilterFn<T>;
export declare function unique<T>(src: T[]): T[];
/**
* Removed all properties with a value of `undefined` from the object.
* @param src - the object to clean.
* @returns the same object with all properties with a value of `undefined` removed.
*/
export declare function clean<T extends object>(src: T): RemoveUndefined<T>;
export {};
//# sourceMappingURL=util.d.ts.map