📅  最后修改于: 2022-03-11 15:01:17.756000             🧑  作者: Mango
let string = " Your Text ";
string = string.trim(); // "Your Text"
// This gets rid of both starting and trailing whitespace