value

Creates a validation function that checks the value of an input for equality.

const validate = value(requirement, error);

Parameters

  • requirement string | number
  • error string

Return

  • validate QRL<(value: MaybeValue<string | number>) => string>