o-size
v1.0.0
Published
Returns size of an object
Downloads
1
Maintainers
Readme
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