score:0

seems like you're doing some weird stuff but to answer your question, the function would be something like this:

const isInEvenList = useMemo(() => {
    for (const evenDay of evenList) {
      if (evenDay.id === keyDay) {
        return true
      }
    }
  },
  [evenList])

Related Query

More Query from same tag