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

How to Remove Duplicates from Array in Javascript ES6

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