ow
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Predicate<boolean>
    • BooleanPredicate

Implements

  • BasePredicate<boolean>

Index

Accessors

Methods

Accessors

false

false:

Test a boolean to be false.

not

not:

Invert the following validators.

true

true:

Test a boolean to be true.

Methods

is

  • is(fn: function): this
  • Test if the value matches a custom validation function. The validation function should return true if the value passes the function. If the function either returns false or a string, the function fails and the string will be used as error message.

    Parameters

    • fn: function

      Validation function.

        • (value: boolean): boolean | string
        • Parameters

          • value: boolean

          Returns boolean | string

    Returns this