is there a way to do a conditional alternative in js

my code is

if(name === 'banana' || name === 'orange') //do something

the word “name” is in my code twice, is there something that I can do to do not repeat it? if I do

if(name === 'banana' || 'orange')

the computer doesn’t understand, maybe there is another way that i dont know yet,

thanks very much