Es6 how to check object is empty

 How to check object is empty? 

const myObj = {};

const result = Object.keys(myObj).length === 0); and

Comments

Popular posts from this blog

spread operator use in reactjs

Break loop once condition match JavaScript