Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/type-of/docs/types/index.d"

Index

Functions

Functions

Export assignment typeOf

  • typeOf(value: any): string
  • Determines a value's type.

    Notes

    The following values are not natively provided in older JavaScript engines:

    • Map
    • Set
    • WeakMap
    • WeakSet
    • Symbol

    Parameters

    • value: any

      input value

    Returns string

    string indicating the value's type

    Example

    var str = typeOf( 'a' );
    // returns 'string'

    Example

    var str = typeOf( 5 );
    // returns 'number'