The IsArrayContainerOf decorator checks if the target argument array values are contained by the decorated property.
target
class IsArrayContainerOfDemo { @IsArrayContainerOf([1, 2, 3]) p0: any[] = [1, 2, 3, 4]}
The validation options
The validation context.
The object containing the property to validate.
True if the value is in the target array.
Generated using TypeDoc
The IsArrayContainerOf decorator checks if the
target
argument array values are contained by the decorated property.Example