Update byteSize.md

This commit is contained in:
atomiks
2017-12-29 23:37:58 +11:00
committed by GitHub
parent ea4c764eaf
commit 449b9f200c

View File

@ -3,9 +3,7 @@
Returns the length of string. Returns the length of string.
```js ```js
const byteSize = (str) => { const byteSize = str => new Blob([str]).size;
return new Blob([str]).size;
}
``` ```
```js ```js