object-size

0.1.1 • Public • Published

object-size NPM version

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:

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on October 01, 2014.

Package Sidebar

Install

npm i object-size

Weekly Downloads

4

Version

0.1.1

License

none

Last publish

Collaborators

  • doowb
  • jonschlinkert