jv-object-length

calculate the length of the object

Usage no npm install needed!

<script type="module">
  import jvObjectLength from 'https://cdn.skypack.dev/jv-object-length';
</script>

README

jv-object-length

Introduction

count enumerable properties of an object with properties of prototype excluded

Usage

  var jvObjectLength = require('jv-object-length')
  var arr = {foo: 'foo', bar: 'bar', name: 'jjvein', age: 23, pig: null}
  var ret = jvObjectLength(arr)