UNPKG

vanilla-type-check

Version:
8 lines (7 loc) 250 B
/** * Check if an object or an array is empty. * * @param value value to check * @returns `true` if `obj` is an object with no enumerable keys or an empty array. `false` otherwise. */ export declare function isEmpty(value: any): boolean;