pastebin

Paste Search Dynamic
Recent pastes
trimString
  1. function trimString(x) {
  2.     let trimValue = x.replace(/^s+|s+$/g,'');
  3.     return trimValue;
  4. }
  5. const result = trimString(' Hello world! ');
  6. console.log(result);
Parsed in 0.003 seconds