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