UNPKG

es-toolkit-clean

Version:

A lightweight, TypeScript-first library for cleaning JavaScript objects by removing undefined values, empty strings, empty arrays, functions, and other unwanted properties. Built on es-toolkit for superior performance.

13 lines (12 loc) 825 B
export declare function isPrototype(value: object): boolean; export declare function isArguments(value?: unknown): value is IArguments; export declare function isArrayLike(value?: unknown): value is ArrayLike<unknown>; export declare function isEmpty(value?: unknown): boolean; export declare function isArray(value?: unknown): value is unknown[]; export declare function isNumber(value?: unknown): value is number; export declare const isEmptyString: (value: unknown) => boolean; export declare const isEmptyObject: (value: unknown) => boolean; export declare const isEmptyArr: (value: unknown) => boolean; export declare const rejectEmpty: (arr: unknown[]) => unknown[]; export declare const isEmptyArray: (value: unknown) => boolean; export declare function isObjectLike(value: unknown): value is Record<string, unknown>;