🌈 搜索
📅  最后修改于: 2022-03-11 15:01:00.759000             🧑  作者: Mango
if array.contains(where: {$0.name == "foo"}) { // it exists, do something } else { //item could not be found }