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.

7 lines (6 loc) 490 B
import { type CleanerFunction } from '../types/common'; import { type ProcessorConfig } from './processors'; export declare function createProcessor(processorConfig?: Partial<ProcessorConfig>): CleanerFunction; export declare const processValue: CleanerFunction; export declare function createCleaner(processorConfig: Partial<ProcessorConfig> | ((defaultProcessors: ProcessorConfig) => CleanerFunction)): (node: unknown) => unknown; export declare const cleaner: (obj: unknown) => unknown;