function quickCheck(arr, elem) {
// Only change code below this line
let value = arr.indexOf(elem);
if(value >= 0){
return true;
}else{
return false;
}
// Only change code above this line
}
console.log(quickCheck([‘squash’, ‘onions’, ‘shallots’], ‘mushrooms’));