joinLines Summary Condenses multiple lines of text into a single line. Signatures Click on a signature to select it and view its documentation. public string joinLines() public string joinLines(string separator) Usage public string joinLines() public string joinLines(string separator) Returns A string representing all the lines joined together. A string representing all the lines joined together. Parameters separator The separator to use for the joined lines of text. Description The lines will be joined by a single space (" "). The lines will be joined by the specified separator. Examples Basic Usage 123456789import System; string text = """ The quick brown fox jumped over the lazy dog. """; Console.log(text.joinLines()); // "The quick brown fox jumped over the lazy dog." Basic Usage 12345678910import System; string text = """ foo bar baz """; Console.log(text.joinLines(" -> ")); // "foo -> bar -> baz" Share HTML | BBCode | Direct Link