Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

object-len

1.0.0 • Public • Published

object-len

npm Travis (.com) npm npm bundle size

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

Keywords

Install

npm i object-len

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.48 kB

Total Files

4

Last publish

Collaborators

  • avatar