check obj is not undefined or empty ks code example Example: check if js object is empty JSON.stringify({}) !== '{}';