diff --git a/snippets/byteSize.md b/snippets/byteSize.md index aff541a5b..8e9f533c5 100644 --- a/snippets/byteSize.md +++ b/snippets/byteSize.md @@ -2,6 +2,8 @@ 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 + ```js const byteSize = str => new Blob([str]).size; ```