Want to trim each string in an array, e.g., given
x = [\' aa \', \' bb \'];
output
[\'aa\', \'bb\']
My fi
Or this can be solved with arrow functions:
x.map(s => s.trim());