0
let test = {fruit: ["apple", "pair", "cow2"],
            friend: ["chair", "car", "cow"]}
const me = "cow"
if (find){do something}

How do i check if "cow" exist in in array? i want to check if is in fruit, if not then search into next one (which is in friend)

SCH
  • 83
  • 1
  • 1
  • 8

0 Answers0