index.ts 233 Bytes
Newer Older
1
export { asyncWrap } from "./asyncWrap";
Yoon, Daeki's avatar
Yoon, Daeki committed
2
3
4
5
6
7
8
9

export const isEmpty = (obj: any) => {
  return (
    obj && // 👈 null and undefined check
    Object.keys(obj).length === 0 &&
    Object.getPrototypeOf(obj) === Object.prototype
  );
};