object-len Get the number of properties in an object Install npm i object-len Usage const objectLength = require('object-len') const o = { a: 1, b: 2, c: 3, } const oLength = objectLength(o) console.log(oLength) // 3 License MIT