Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isBoolean

  • isBoolean(val: unknown): boolean
  • Checks if the given value is a boolean.

    example

    isBool(true); // true isBool(false); // true isBool('not boolean'); // false

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Whether the value is a boolean.

Legend

  • Function

Generated using TypeDoc