trim string type script code example
Example 1: typescript remove whitespace from string
let whiteSpace = ' ABCD ';
let noWhiteSpace = whiteSpace.trim();
Example 2: javascript whitespace strip
yourvariable.trim()
let whiteSpace = ' ABCD ';
let noWhiteSpace = whiteSpace.trim();
yourvariable.trim()