📜  如何在 swift 代码示例中比较两个 [String:Any]

📅  最后修改于: 2022-03-11 15:01:03.094000             🧑  作者: Mango

代码示例2
let actual: [String: AnyObject] = ["id": 12345, "name": "Rahul Katariya"]


var expected: [String: AnyObject] = ["id": 12346, "name": "Aar Kay"]


print(NSDictionary(dictionary: actual).isEqualToDictionary(expected))//False