Function isPlainObject

Returns true if value is a plain object

isPlainObject(`text`); // false
isPlainObject(document); // false
isPlainObject({ hello: `there` }); // true
  • Parameters

    • value: unknown

    Returns boolean