let array = ["1","2","3","4"]
array.filter({ $0.count != 0 })
报错Empty Count Violation: Prefer checking `isEmpty` over comparing `count` to zero (empty_count)
改为
array.filter({ !$0.isEmpty })
let array = ["1","2","3","4"]
array.filter({ $0.count != 0 })
报错Empty Count Violation: Prefer checking `isEmpty` over comparing `count` to zero (empty_count)
改为
array.filter({ !$0.isEmpty })