title: YUP schema validation for existing input
body: <p>I am trying to create a schema to validate if the entered input is not already in an array. If it is, then i need to log an error to the user. E.g. if the entered input value &quot;apple&quot; is already in some array [&quot;apple&quot;, &quot;mango&quot;, &quot;banana&quot;] then i need to show the message &quot;Fruit already exists&quot;. What's the validation schema for that?</p>
  <p>Thanks</p>