This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
|
// https://stackoverflow.com/a/32108184/10924593
|
|
export function objectIsEmpty(obj: Record<string, unknown>): boolean {
|
|
return obj
|
|
&& Object.keys(obj).length === 0
|
|
&& Object.getPrototypeOf(obj) === Object.prototype
|
|
} |