Angular 9 Lepaskan teks setelah ruang putih

let whiteSpace = ' ABCD ';
let noWhiteSpace = whiteSpace.trim();
Concerned Crossbill