If we want an array without these whitespace characters, we may filter them using the following expression. str.split(/(\s+)/).filter((x) => x.trim().length>0) ...
確定! 回上一頁