From c5ec72fafc93f42964d992222ae31eb825e7ccd7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Fri, 29 Dec 2017 11:02:57 +0000 Subject: [PATCH] Travis build: 476 --- README.md | 24 ------------------------ docs/index.html | 8 -------- 2 files changed, 32 deletions(-) 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.