Module

createKeyValidator

Create a validator of the case-insensitive key e.g. const isStatusDraft = createKeyValidator(STATUS_DRAFT)
Parameters:
Name Type Description
target Target string constant, or array of validators.

View Source validators/createKeyValidator.js, line 8