Object Manipulation

(, en)
export function isObject(o: any) {
  return typeof o === "object" && !Array.isArray(o) && o !== null;
}

Source

// https://stackoverflow.com/a/59787784
export function isEmptyObj(obj: any): boolean {
  for (const _ in obj) {
    return false;
  }
  return true;
}