• Checks if a value is an object.

    "object" in terms of this function means a regular object with string or Symbol properties.

    Remarks

    This function does not behave the same as JavaScript's typeof operator, which returns "object" also for Arrays and null.

    Example

    const result = isObject({});
    console.log(result); // true

    Example

    const result = isObject([]);
    console.log(result); // false

    Returns

    true if value is an object, otherwise false

    Type Parameters

    • T extends {
          [key: string | symbol]: unknown;
      }

    Parameters

    • value: unknown

      the value to check

    Returns value is T

Generated using TypeDoc