object-len
v1.0.0
Published
Get the number of properties in an object
Downloads
11
Readme
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