Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neosiae/object-len
Get the number of properties in an object
https://github.com/neosiae/object-len
Last synced: 24 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T17:18:22.000Z (over 4 years ago)
- Last Synced: 2024-04-24T13:36:34.200Z (7 months 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
![npm](https://img.shields.io/npm/v/object-len?style=flat-square) ![Travis (.com)](https://img.shields.io/travis/com/neosiae/object-len?style=flat-square) ![npm](https://img.shields.io/npm/dw/object-len?style=flat-square) ![npm bundle size](https://img.shields.io/bundlephobia/min/object-len?style=flat-square)
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