JavaScript Trim Every Element в массиве
//trim each element in array
array.map(string => string.trim());
Web Surfer
//trim each element in array
array.map(string => string.trim());