sizeof icon indicating copy to clipboard operation
sizeof copied to clipboard

functions and arrays in object

Open tufandevrim opened this issue 8 years ago • 1 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 avatar Oct 28 '16 19:10 tufandevrim

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

miktam avatar May 19 '17 20:05 miktam

fixed here https://github.com/miktam/sizeof/pull/76

miktam avatar Feb 02 '23 10:02 miktam