diff --git a/README.md b/README.md index 9ef8e268f..bde7d8eff 100644 --- a/README.md +++ b/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/); -``` - -
-Examples - -```js -splitLines('This\nis a\nmultiline\nstring.\n'); // ['This', 'is a', 'multiline', 'string' , ''] -``` - -
- - -[⬆ Back to top](#table-of-contents) - - ### toCamelCase Converts a string to camelcase. diff --git a/docs/index.html b/docs/index.html index 240784560..9fbd42386 100644 --- a/docs/index.html +++ b/docs/index.html @@ -244,7 +244,6 @@ repeatString reverseString sortCharactersInString -splitLines toCamelCase toKebabCase toSnakeCase @@ -1588,13 +1587,6 @@ Combine characters to get a string using join('').

sortCharactersInString('cabbage'); // 'aabbceg'
 
-

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.

-
const splitLines = str => str.split(/\r?\n/);
-
-
splitLines('This\nis a\nmultiline\nstring.\n'); // ['This', 'is a', 'multiline', 'string' , '']
-

toCamelCase

Converts a string to camelcase.

Break the string into words and combine them capitalizing the first letter of each word.