UNPKG

nhb-toolbox

Version:

A versatile collection of smart, efficient, and reusable utility functions and classes for everyday development needs.

16 lines 474 B
import type { GenericObject } from './types'; /** * * Deep clone an object. * * @param obj Object to clone. * @returns Deep cloned object. */ export declare const cloneObject: <T extends GenericObject>(obj: T) => T; /** * * Count the number of fields in an object. * * @param obj Object to check. * @returns Number of fields in the object. */ export declare const countObjectFields: <T extends GenericObject>(obj: T) => number; //# sourceMappingURL=basics.d.ts.map