compact

Summary

Removes all whitespace from the string.

Signatures

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

Usage

public string compact()

Returns

The string with all whitespace characters removed.

Description

Removes all whitespace (globally) from the string.

Examples

Basic Usage
1
2
3
import System;
 
Console.log("foo bar".compact()); // "foobar"

Share

HTML | BBCode | Direct Link