value-size
v1.0.1
Published
NPM package in getting the size of an array, object or string.
Downloads
49
Maintainers
Readme
Overview
NPM Package for getting the size of an array, object or string.
Installation
npm i value-size --save
Setup & Basic Usage
const size = require('value-size')
size([1, 2, 3, 4, 5]); // 5
size('size'); // 4
size({ one: 1, two: 2, three: 3 }); // 3
Contribute
Code snippet from: 30 seconds of code.
Feel free to clone or fork this project: https://github.com/deanilvincent/value-size.git
Contributions & pull requests are welcome!
I'll be glad if you give this project a ★ on Github :))
License
This project is licensed under the MIT License - see the LICENSE.md file for details.