Options
All
  • Public
  • Public/Protected
  • All
Menu

Module is/boolean

Index

References

Functions

References

Renames and re-exports isBoolean

Functions

  • isBoolean(test: any): test is boolean
  • Checks if test is boolean.

    example
     isBool(false);          //=> true
    isBool(new Boolean()); //=> true
    isBool(null); //=> false

    Parameters

    • test: any

      The value to check.

    Returns test is boolean

    Returns true if value is boolean, else false.

Generated using TypeDoc