Travis build: 648
This commit is contained in:
52
README.md
52
README.md
@ -214,6 +214,7 @@
|
||||
<summary>View contents</summary>
|
||||
|
||||
* [`anagrams`](#anagrams)
|
||||
* [`byteSize`](#bytesize)
|
||||
* [`capitalize`](#capitalize)
|
||||
* [`capitalizeEveryWord`](#capitalizeeveryword)
|
||||
* [`countVowels`](#countvowels)
|
||||
@ -259,15 +260,6 @@
|
||||
|
||||
</details>
|
||||
|
||||
### _Uncategorized_
|
||||
|
||||
<details>
|
||||
<summary>View contents</summary>
|
||||
|
||||
* [`byteSize`](#bytesize)
|
||||
|
||||
</details>
|
||||
|
||||
## Adapter
|
||||
|
||||
### call
|
||||
@ -3249,6 +3241,29 @@ anagrams('abc'); // ['abc','acb','bac','bca','cab','cba']
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### byteSize
|
||||
|
||||
Returns the length of string.
|
||||
|
||||
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;
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```js
|
||||
byteSize('😀'); // 4
|
||||
byteSize('Hello World'); // 11
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### Capitalize
|
||||
|
||||
Capitalizes the first letter of a string.
|
||||
@ -4143,25 +4158,6 @@ validateNumber('10'); // true
|
||||
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
## _Uncategorized_
|
||||
|
||||
### byteSize
|
||||
|
||||
Returns the length of string.
|
||||
|
||||
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;
|
||||
```
|
||||
|
||||
```js
|
||||
byteSize('😀'); // 4
|
||||
byteSize('Hello World'); // 11
|
||||
```
|
||||
|
||||
<br>[⬆ back to top](#table-of-contents)
|
||||
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user