Closed miktam closed 1 year ago
:exclamation: No coverage uploaded for pull request base (
master@fad2ede
). Click here to learn what that means. The diff coverage isn/a
.
@@ Coverage Diff @@
## master #70 +/- ##
=========================================
Coverage ? 92.68%
=========================================
Files ? 2
Lines ? 41
Branches ? 0
=========================================
Hits ? 38
Misses ? 3
Partials ? 0
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
V2 uses different implementations for Node.js and browsers.
Node.js: the Buffer.from(objectToString) method to convert the object's string representation to a buffer, and then it uses the byteLength property to obtain the size of the buffer in bytes.
Browser: Iterates through a tree recursively and, depending on the element type, calculates byte size.