10 lines
194 B
TypeScript
10 lines
194 B
TypeScript
export const isObjectNull = (value: any) => {
|
|
if (value === null || value === undefined) {
|
|
return true;
|
|
}
|
|
if (JSON.stringify(value) === '{}') {
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|