Options
All
  • Public
  • Public/Protected
  • All
Menu

Module isObject

Index

References

Functions Lang

References

Renames and re-exports __type

Lang Functions

  • isObject(value: any): boolean
  • Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0), and new String(''))

    since

    5.6.0

    example
    isObject({})
    // => true

    isObject([1, 2, 3])
    // => true

    isObject(Function)
    // => true

    isObject(null)
    // => false

    Parameters

    • value: any

      The value to check.

    Returns boolean

    Returns true if value is an object, else false.