📅  最后修改于: 2022-03-11 15:01:03.504000             🧑  作者: Mango
let arrayOfOptionals: [String?] = ["Seems", "like", "an", nil, "of", "optionals"]
let arrayWithNoOptionals = arrayOfOptionals.compactMap { $0 }