Static p5_sys::global::trim [−][src]
pub static trim: TrimInternalType
Expand description
Removes whitespace characters from the beginning and end of a String. In addition to standard whitespace characters such as space, carriage return, and tab, this function also removes the Unicode "nbsp" character.
Examples
let string = trim(' No new lines\n '); text(string + ' here', 2, 50);
Overloads
str
a String to be trimmed
strs
an Array of Strings to be trimmed