Travis build: 476
This commit is contained in:
24
README.md
24
README.md
@ -223,7 +223,6 @@
|
||||
* [`repeatString`](#repeatstring)
|
||||
* [`reverseString`](#reversestring)
|
||||
* [`sortCharactersInString`](#sortcharactersinstring)
|
||||
* [`splitLines`](#splitlines)
|
||||
* [`toCamelCase`](#tocamelcase)
|
||||
* [`toKebabCase`](#tokebabcase)
|
||||
* [`toSnakeCase`](#tosnakecase)
|
||||
@ -3578,29 +3577,6 @@ sortCharactersInString('cabbage'); // 'aabbceg'
|
||||
[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### splitLines
|
||||
|
||||
Splits a multiline string into an array of lines.
|
||||
|
||||
Use `String.split()` and a regular expression to match line breaks and create an array.
|
||||
|
||||
```js
|
||||
const splitLines = str => str.split(/\r?\n/);
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```js
|
||||
splitLines('This\nis a\nmultiline\nstring.\n'); // ['This', 'is a', 'multiline', 'string' , '']
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### toCamelCase
|
||||
|
||||
Converts a string to camelcase.
|
||||
|
||||
@ -244,7 +244,6 @@
|
||||
<a class="sublink-1" href="#repeatstring">repeatString</a>
|
||||
<a class="sublink-1" href="#reversestring">reverseString</a>
|
||||
<a class="sublink-1" href="#sortcharactersinstring">sortCharactersInString</a>
|
||||
<a class="sublink-1" href="#splitlines">splitLines</a>
|
||||
<a class="sublink-1" href="#tocamelcase">toCamelCase</a>
|
||||
<a class="sublink-1" href="#tokebabcase">toKebabCase</a>
|
||||
<a class="sublink-1" href="#tosnakecase">toSnakeCase</a>
|
||||
@ -1588,13 +1587,6 @@ Combine characters to get a string using <code>join('')</code>.</p>
|
||||
</code></pre>
|
||||
<pre><code class="language-js">sortCharactersInString('cabbage'); // 'aabbceg'
|
||||
</code></pre>
|
||||
</div></div><br/><div class="card fluid"><div class="section double-padded"><h3 id="splitlines">splitLines</h3></div><div class="section double-padded">
|
||||
<p>Splits a multiline string into an array of lines.</p>
|
||||
<p>Use <code>String.split()</code> and a regular expression to match line breaks and create an array.</p>
|
||||
<pre><code class="language-js">const splitLines = str => str.split(/\r?\n/);
|
||||
</code></pre>
|
||||
<pre><code class="language-js">splitLines('This\nis a\nmultiline\nstring.\n'); // ['This', 'is a', 'multiline', 'string' , '']
|
||||
</code></pre>
|
||||
</div></div><br/><div class="card fluid"><div class="section double-padded"><h3 id="tocamelcase">toCamelCase</h3></div><div class="section double-padded">
|
||||
<p>Converts a string to camelcase.</p>
|
||||
<p>Break the string into words and combine them capitalizing the first letter of each word.
|
||||
|
||||
Reference in New Issue
Block a user