value-size

1.0.1 • Public • Published

Build Status

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.

/value-size/

    Package Sidebar

    Install

    npm i value-size

    Weekly Downloads

    24

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.06 kB

    Total Files

    6

    Last publish

    Collaborators

    • dvincent333