From a5b6eb480f355da467ecd0a7c83a5c6511c49f60 Mon Sep 17 00:00:00 2001 From: Rohit Tanwar <31792358+kriadmin@users.noreply.github.com> Date: Fri, 29 Dec 2017 18:22:30 +0530 Subject: [PATCH] Update byteSize.md --- snippets/byteSize.md | 2 ++ 1 file changed, 2 insertions(+) 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; ```