Checks that the value is of type object and is not null.

isObject(1); // Error: isObject
isObject(null); // Error: isObject
isObject({}); // passes
  • Parameters

    • value: unknown

    Returns asserts value is Record<string, unknown>