Function isObjectLike

  • Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".

    Parameters

    • value: any

      The value to check.

    Returns boolean

    Returns true if value is object-like, else false.

    5.3.0

    isObjectLike({})
    // => true

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

    isObjectLike(Function)
    // => false

    isObjectLike(null)
    // => false