Get the length of own enumerable properties on an object excluding the object's prototype properties.
npm i object-size --save-dev
npm test
var len = require('object-size');
console.log(len({a: 'a', b: 'b'}));
//=> 2
Jon Schlinkert
Other projects that I maintain:
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 01, 2014.