'set' object check is empty code example Example: check if js object is empty JSON.stringify({}) !== '{}';