How to count length of object keys es6

To check the length of object (obj) keys

const result = Object.keys(obj).length

Comments

Popular posts from this blog

spread operator use in reactjs

Break loop once condition match JavaScript