Nerds Publishing Monstrosities

    o-size

    1.0.0 • Public • Published

    o-size

    Returns size of an object

    Install

    $ npm install --save o-size

    Examples

    var len = require('o-size');
     
    console.log(len({one: 1, two: 2, three: 3}));
    // -> 3

    using array like objects

    var len = require('o-size');
     
    function dummy () {
      console.log(len(arguments)).to.be.eql(3);
    }
     
    dummy(1, 2, 3);
    // -> 3

    Usage

    require('o-size')( object )

    Arguments:

    • object: any object

    Returns: Returns size of an object

    License

    © 2016 vikram. MIT License

    Install

    npm i o-size

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • vikramcse