Creted an Array like this:
var MyArray: [String:[String:[Int]]] = [
"xx": ["x1": [1, 2, 3], "x2": [4, 5, 6], "x3": [7, 8, 9]],
"yy": ["y1": [10, 11, 12], "y2": [13, 14, 15], "y3": [16, 17, 18]]
]
I want to check if for example "xx" is in the MyArray
. Tried this but it has an error:
if [MyArray].contains("xx"{
}
But it autocorrects it to this
if [MyArray].contains(where: "xx"{
}
And again it has an error, any ideas??