Update byteSize.md

This commit is contained in:
Angelos Chalaris
2017-12-29 14:55:24 +02:00
committed by GitHub
parent dbda00da8a
commit f7fe43e041

View File

@ -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;