https://github.com/neosiae/object-len
Get the number of properties in an object
https://github.com/neosiae/object-len
Last synced: 4 months ago
JSON representation
Get the number of properties in an object
- Host: GitHub
- URL: https://github.com/neosiae/object-len
- Owner: neosiae
- License: mit
- Created: 2020-07-08T15:18:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T17:18:22.000Z (about 5 years ago)
- Last Synced: 2024-04-24T13:36:34.200Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# object-len
   
Get the number of properties in an object
## Install
> npm i object-len
## Usage
```javascript
const objectLength = require('object-len')const o = {
a: 1,
b: 2,
c: 3,
}const oLength = objectLength(o)
console.log(oLength) // 3
```## License
MIT