I have an array
apple
color: red
price: 2
orange
color: orange
price: 3
banana
color: yellow
price: 2
When I get input
, let's say green apple
how do I check if it exists in the array and display its data (if it exists).