Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

BOOLEAN

BOOLEAN: string = _BOOLEAN

typeof true

type

{string}

FUNCTION

FUNCTION: string = _FUNCTION

typeof function

type

{string}

NUMBER

NUMBER: string = _NUMBER

typeof 0

type

{string}

OBJECT

OBJECT: string = _OBJECT

typeof {}

type

{string}

STRING

STRING: string = _STRING

typeof ""

type

{string}

UNDEFINED

UNDEFINED: string = _UNDEFINED

typeof undefined

type

{string}

Functions

hasMember

  • hasMember(value: any, property: string): boolean
  • Parameters

    • value: any
    • property: string

    Returns boolean

hasMemberOfType

  • hasMemberOfType<T>(instance: any, property: string, type: string): boolean
  • Type parameters

    • T

    Parameters

    • instance: any
    • property: string
    • type: string

    Returns boolean

isArrayLike

  • isArrayLike<T>(instance: any): boolean
  • Type parameters

    • T

    Parameters

    • instance: any

    Returns boolean

isBoolean

  • isBoolean(value: any): boolean
  • Returns true if the value parameter is a boolean.

    Parameters

    • value: any

    Returns boolean

isFunction

  • isFunction(value: any): boolean
  • Returns true if the value parameter is a function.

    Parameters

    • value: any

    Returns boolean

isNumber

  • isNumber(value: any, allowNaN?: boolean): boolean
  • Returns true if the value parameter is a number.

    Parameters

    • value: any
    • Optional allowNaN: boolean

      Default is true.

    Returns boolean

isObject

  • isObject(value: any, allowNull?: boolean): boolean
  • Returns true if the value parameter is an object.

    Parameters

    • value: any
    • Default value allowNull: boolean = false

      If false (default) null is not considered an object.

    Returns boolean

isPrimitive

  • isPrimitive(value: any): boolean
  • Returns true if the value is a boolean, string, number, null, or undefined.

    Parameters

    • value: any

    Returns boolean

isString

  • isString(value: any): boolean
  • Returns true if the value parameter is a string.

    Parameters

    • value: any

    Returns boolean

isTrueNaN

  • isTrueNaN(value: any): boolean
  • Returns true if is a number and is NaN.

    Parameters

    • value: any

    Returns boolean

numberOrNaN

  • numberOrNaN(value: any): number
  • Guarantees a number value or NaN instead.

    Parameters

    • value: any

    Returns number

of

  • Parameters

    • target: any

    Returns TypeInfo

Generated using TypeDoc