Options
All
  • Public
  • Public/Protected
  • All
Menu

Utility class containing a bunch of helper methods for commonly used type interactions and other methods as
shortcuts. While TypeScript does enforce typing, this utility class is designed to help make sure that code
executes as expected during run-time, after having been compiled to JavaScript.

Hierarchy

  • TypesUtil

Index

Methods

Static isArray

  • isArray(arg: any): boolean
  • Indicates if a passed value is an Array; does not ensure that the Array is valid.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is an Array, otherwise false.

Static isBoolean

  • isBoolean(arg: any): boolean
  • Indicates if a passed value is a boolean value.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is a boolean, otherwise false.

Static isCustomType

  • isCustomType(arg: any): boolean
  • Indicates if a passed value is a CustomType.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is a CustomType, otherwise false.

Static isDate

  • isDate(arg: any): boolean
  • Indicates if a passed value is a Date; does not ensure that the Date is valid.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is an Array, otherwise false.

Static isEmptyArray

  • isEmptyArray(arg: any): boolean
  • Indicates if a passed value is an empty array.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is an empty array, otherwise false.

Static isEmptyObject

  • isEmptyObject(arg: any): boolean
  • Indicates if a passed value is an empty object.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is an empty object, otherwise false.

Static isFunction

  • isFunction(arg: any): boolean
  • Indicates if a passed value is a function.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is a function, otherwise false.

Static isLogLevelType

  • isLogLevelType(arg: any): boolean
  • Indicates if a passed value is a LogLevelType.

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is a LogLevelType, otherwise false.

Static isNotArray

  • isNotArray(arg: any): boolean
  • Indicates if a passed value is not an Array.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not an Array, otherwise false.

Static isNotBoolean

  • isNotBoolean(arg: any): boolean
  • Indicates if a passed value is not a boolean value.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not a boolean, otherwise false.

Static isNotCustomType

  • isNotCustomType(arg: any): boolean
  • Indicates if a passed value is not a CustomType.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not a CustomType, otherwise false.

Static isNotDate

  • isNotDate(arg: any): boolean
  • Indicates if a passed value is not a Date; does not ensure that the Date is valid.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not a Date, otherwise false.

Static isNotEmptyArray

  • isNotEmptyArray(arg: any): boolean
  • Indicates if a passed value is an non-empty array.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is a non-empty array, otherwise false.

Static isNotEmptyObject

  • isNotEmptyObject(arg: any): boolean
  • Indicates if a passed value is not an empty object.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not an empty object, otherwise false.

Static isNotFunction

  • isNotFunction(arg: any): boolean
  • Indicates if a passed value is not a function.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not a function, otherwise false.

Static isNotLogLevelType

  • isNotLogLevelType(arg: any): boolean
  • Indicates if a passed value is not a LogLevelType.

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not a LogLevelType, otherwise false.

Static isNotNull

  • isNotNull(arg: any): boolean
  • Indicates if a passed value is not null.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not null, otherwise false.

Static isNotNullOrUndefined

  • isNotNullOrUndefined(arg: any): boolean
  • Indicates if a passed value is neither null nor undefined. See isNotNull and isNotUndefined

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the value is neither null nor undefined, otherwise false.

Static isNotNumber

  • isNotNumber(arg: any): boolean
  • Indicates if a passed value is not a number.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not a number, otherwise false.

Static isNotObject

  • isNotObject(arg: any): boolean
  • Indicates if a passed value is not an object.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not an object, otherwise false.

Static isNotString

  • isNotString(arg: any): boolean
  • Indicates if a passed value is not a string.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not a string, otherwise false.

Static isNotUndefined

  • isNotUndefined(arg: any): boolean
  • Indicates if a passed value is not undefined.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is not undefined, otherwise false.

Static isNull

  • isNull(arg: any): boolean
  • Indicates if a passed value is null.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is null, otherwise false.

Static isNullOrUndefined

  • isNullOrUndefined(arg: any): boolean
  • Indicates if a passed value is null or undefined. See isNull and isUndefined

    static

    Parameters

    • arg: any

      The value to check the type of

    Returns boolean

    True if the value is null or undefined, otherwise false.

Static isNumber

  • isNumber(arg: any): boolean
  • Indicates if a passed value is a number.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is a number, otherwise false.

Static isObject

  • isObject(arg: any): boolean
  • Indicates if a passed value is an object.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is an object, otherwise false.

Static isObjectAndNotEmptyObject

  • isObjectAndNotEmptyObject(arg: any): boolean
  • Indicates if a passed value is both an object and not empty object. See isObject and
    isNotEmptyObject.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is both an object and not empty, otherwise false.

Static isString

  • isString(arg: any): boolean
  • Indicates if a passed value is a string.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is a string, otherwise false.

Static isUndefined

  • isUndefined(arg: any): boolean
  • Indicates if a passed value is undefined.

    static

    Parameters

    • arg: any

      The value to check the type of.

    Returns boolean

    True if the passed value is undefined, otherwise false.

Constructors

constructor

Generated using TypeDoc