npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

object-size

0.1.1

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:16
$ npm install object-size
DailyWeeklyMonthlyYearly

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

  • github/jonschlinkert
  • twitter/jonschlinkert

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.