JAVASCRIPT: Check if an Object exists and is not empty
To check if an object "myObj" exists ( it's neither null nor undefined) and it's not empty we can use this expression : myObj && Object.keys(myObj).length !== 0 && myObj.constructor === Object Explanation myObj if it evaluates to true, "myObj...


