Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get size of array in bytes javascript

const myArray = [{test: 1234, foo: false, bar: true}];

console.info(new Blob([JSON.stringify(myArray)]).size); // 38
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #size #array #bytes #javascript
ADD COMMENT
Topic
Name
8+1 =