How to output if the element of the object is in another array in React

Just wanted to know, How to output if the element of the object is in another array in React.

example:

my object:
>response
  >fruits
    >banana
       >0
         >test: 1
    >apple
       >0
         >test: 2
my array:
[banana, apple]

I just wanted to output it like this.

response.fruits[select from my array if match?]

Is this possible?
thanks