Angular 9 Usuń tekst po białej przestrzeni

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