sizeof
sizeof copied to clipboard
Functions are objects too in javascript
Let's say we have the following case:
var fn = function() {}
fn.prop = 'value';
Your code wouldn't cache the prop
size.
FYI https://stackoverflow.com/questions/1248302/how-to-get-the-size-of-a-javascript-object
Fixed here https://github.com/miktam/sizeof/pull/76