UNPKG

@technobuddha/library

Version:
12 lines (11 loc) 444 B
/** * Delete all own enumerable string properties from an object * * @remark The input argument is mutated in place * * @typeParam T Type of values within the object * @param input Object to clear all properties * @return Original {@code input} with all properties deleted. */ export declare function clearObject<T = unknown>(input: Record<string | number | symbol, T>): Record<string | number | symbol, T>; export default clearObject;