How can I access this object in the right way? I have these two scenarios
Object
Array[2]
Object: {"code": "a", cor: "vermelha"}
Object: {"code": "b", cor"azul"}
and
Object
Array[1]
Object: {"code": "b", cor: "azul" }
If I do hair.property [0] .cor
I will have the% return% and vermelha
How can I always bring color azul
?