Util class

util class

Methods

trim(string, string)

trim char.

Method Details

trim(string, string)

trim char.

static function trim(str: string, char: string): string

Parameters

str

string

input string.

char

string

trim character.

Returns

string

The trimmed char.