vtils

Home > validator > yup > MixedSchema > equals

yup.MixedSchema.equals() method

oneOf 的别名

Signature:

equals(arrayOfValues: Record<any, T> | Refable<T>[], message?: MixedLocale['oneOf']): this;

Parameters

Parameter Type Description
arrayOfValues Record<any, T> | Refable<T>[]  
message MixedLocale[‘oneOf’] (Optional)

Returns:

this