Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### byteSize
|
||||
---
|
||||
title: byteSize
|
||||
tags: string,beginner
|
||||
---
|
||||
|
||||
Returns the length of a string in bytes.
|
||||
|
||||
@ -11,4 +14,4 @@ const byteSize = str => new Blob([str]).size;
|
||||
```js
|
||||
byteSize('😀'); // 4
|
||||
byteSize('Hello World'); // 11
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user