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...
papidev.hashnode.dev2 min read
No responses yet.