Function isObjectType

  • Checks if the provided value is an object type (null and functions included, array not included).

    Parameters

    • value: unknown

      The value to check.

    Returns boolean

    A boolean indicating whether the provided value is an object type.

    Example

    isObject({});;
    //=> true
    isObject([1]);;
    //=> true
    isObject(123);;
    //=> false

Generated using TypeDoc