Object Posted on 2023-05-11 Edited on 2023-07-31 In Web , JavaScript , TypeScript , TIL , Object 빈 객체 확인1234567const checkObj = (obj)=>{ console.log(obj.constructor === Object) // true console.log(obj.constructor === Array) // false console.log(Object.keys(obj).length) // 0 console.log(!!Object.keys(obj).length) // false}checkObj({})