joinLines

Summary

Condenses multiple lines of text into a single line.

Signatures

Click on a signature to select it and view its documentation.

Usage

public string joinLines()

Returns

A string representing all the lines joined together.

Description

The lines will be joined by a single space (" ").

Examples

Basic Usage
1
2
3
4
5
6
7
8
9
import 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."

Share

HTML | BBCode | Direct Link