isObj
const isObj = (x: any): x is object => !isNull(x) && (objTypeof(x) || isFunction(x)) const isOBJ = (x: any): x is Object => !isNull(x) && (objTypeof(x) || isFunction(x)) const obj = eval(`{prop: 'eh'}`) const arr = [] if (isOBJ(obj) && obj.prop) {} if (isObj(obj) && obj.prop) {}