object-size
v0.1.1
Published
Get the length of own enumerable properties on an object excluding the object's prototype properties.
Downloads
7
Readme
object-size
Get the length of own enumerable properties on an object excluding the object's prototype properties.
Install
Install with npm:
npm i object-size --save-dev
Run tests
npm test
Usage
var len = require('object-size');
console.log(len({a: 'a', b: 'b'}));
//=> 2
Author
Jon Schlinkert
Other javascript/node.js utils
Other projects that I maintain:
- arr
- arr-diff
- array-last
- array-slice
- array-sum
- arrayify-compact
- compact-object
- delete
- for-in
- for-own
- has-any
- has-value
- is-number
- is-plain-object
- mixin-deep
- mixin-object
- object-length
- omit-empty
- reduce-object
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 01, 2014.