title: How to filter out values from an array instead of raising an exception with Yup?
body: <p>I have an array of objects where one of the fields is represented by an enum of numbers.</p>
  <p>If a value that's not part of the enum is provided, I would like to just filter out the object instead of raising an exception.</p>
  <p>Is this possible? (without doing an array.filter beforehand, I mean)</p>
  <p><a href="https://stackblitz.com/edit/typescript-1nq9fj?file=index.ts" rel="nofollow noreferrer">demo</a></p>