const isEmpty = (obj: any | Record<string, unknown>) => !Object.entries(obj || {}).length && !obj?.length && !obj?.size; export default isEmpty;
Esse é o post.