let newArr2 = arr .map((item) => item.trim()) .filter((item) => item.length > 0);. That snippet of code loops over the array twice, ...
確定! 回上一頁