0
How can I access this object 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]. color
I’ll get the return vermelha
and azul
how can I always bring color azul
?
It is unclear what your selection condition is. You need to always take the last element?
– Woss
i need to always bring the object that has the blue color, q in the first scenario is in position [1] and then in position [0]
– Guilherme Lima