UNPKG

object.size

Version:
27 lines (15 loc) 1.09 kB
# object.size returns the size of a given object ---- <a href="https://nodei.co/npm/object.size/"><img src="https://nodei.co/npm/object.size.png?downloads=true"></a> [![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg?style=flat-square)](https://travis-ci.org/joaquimserafim/object.size)![Code Coverage 100%](https://img.shields.io/badge/code%20coverage-100%25-green.svg?style=flat-square)[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg?style=flat-square)](https://github.com/joaquimserafim/object.size/blob/master/LICENSE)[![NodeJS](https://img.shields.io/badge/node-6.1.x-brightgreen.svg?style=flat-square)](https://github.com/joaquimserafim/object.size/blob/master/package.json#L39) [![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) ### api `const objectSize = require('object.size')` `objectSize(object)` should return an integer value ### example ```js const objectSize = require('object.size') objectSize({a: 1, b: 2, c: 3})// returns 3 ``` #### ISC License (ISC)