To filter an array in Swift, use the Array.filter() method. This lets you filter elements that do not meet a criteria.
確定! 回上一頁