Object Emtpy by keys

const boj = {}

if(Object.keys(obj).length === 0 && obj.constructor === Object) {
    //This will do
}