Checks if value is less than or equal to the provided length.

const teenagerAge = maxValue(17);

teenagerAge(26); // Error: maxValue
teenagerAge(15); // passes
  • Parameters

    • input: unknown

      Value used in the comparison.

    Returns ((v: unknown) => true)

      • (v): true
      • Parameters

        • v: unknown

        Returns true