How to check any property available in object es6

 To check whether property available in object

const result = myObj.hasOwnProperty('id');

Comments

Popular posts from this blog

world tourism guide Template

Es6 how to check if value is not null or undefined?