Update byteSize.md
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
Returns the length of string.
|
||||
|
||||
It converts a given string to a [Blob Object](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and finds it's size
|
||||
Convert a given string to a [`Blob` Object](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and find its `size`.
|
||||
|
||||
```js
|
||||
const byteSize = str => new Blob([str]).size;
|
||||
|
||||
Reference in New Issue
Block a user