Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "assert/is-class/docs/types/index.d"

Index

Functions

Functions

Export assignment isClass

  • isClass(value: any): boolean
  • Tests if a value is a class.

    Parameters

    • value: any

      value to test

    Returns boolean

    boolean indicating whether a value is a class

    Example

    var bool = isClass( class Person {} );
    // returns true

    Example

    var bool = isClass( function Person() {} );
    // returns false

    Example

    var bool = isClass( null );
    // returns false