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. |