Validates the state of a set.
The returned validator throws an error immediately if a validation fails.
the type the value
the type elements in the array or set
the value
the name of the value
validator for the value
TypeError if name is undefined or null
name
undefined
null
RangeError if name is empty
Validates the state of a set.
The returned validator throws an error immediately if a validation fails.