@metreeca/core - v0.9.22
    Preparing search index...

    Function gte

    Constrains numbers and strings to an inclusive lower bound.

    • Constrains numbers to an inclusive lower bound.

      Parameters

      • limit: number | undefined

        The inclusive lower bound, or undefined to accept any value

      Returns Validator<number>

      A validator reporting a violation if the value is less than limit

    • Constrains strings to an inclusive lower bound.

      Strings compare lexicographically.

      Parameters

      • limit: string | undefined

        The inclusive lower bound, or undefined to accept any value

      Returns Validator<string>

      A validator reporting a violation if the value is less than limit