Answers for "compare function in swift"

0

how to compare two [String:Any] in swift

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
Posted by: Guest on October-23-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language