Answers for "get size of array in bytes javascript"

0

get size of array in bytes javascript

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

console.info(new Blob([JSON.stringify(myArray)]).size); // 38
Posted by: Guest on April-18-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language