Answers for "yup.array not working"

0

yup.array not working

//Empty arrays are considered truthy that's why we cannot use array().required()
const validationSchema = Yup.object().shape({
  stringArray: Yup.array().min(1, messageHere);
});
Posted by: Guest on October-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language