How to check the size of a javascript object (in memory)

2

How to check the size of a javascript object (in memory) using pure javascript?

    
asked by anonymous 09.11.2015 / 20:31

1 answer

2

It does not seem possible, however, there is a library able to to estimate the size of an object.
Once added, just use the sizeof () function. For example:

var tamanho = sizeof(objeto);
    
09.11.2015 / 20:35