数组操作

发布
更新
字数 11
阅读 1 分钟
阅读量 418

清空数组元素

array.removeAll()

array.removeAll { $0.isPendingToDelete }