miktam / sizeof

Get size of a JavaScript object

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

functions and arrays in object

tufandevrim opened this issue · comments

Thanks for this util. I am wondering how this lib takes into account functions and arrays defined in an object like this:

var myObj = {
  'a': 1,
  'b': function(foo) {
      //bar
  },
  'c': [1,2,3,4,5]
} 

@tufandevrim currently module will not calculate both cases correctly.
I will add it in the next version.
Thanks for suggestion

fixed here #76