Checks if a given value is a plain object.
A plain object is an object created by the {}
literal, new Object()
, or
Object.create(null)
.
This function also handles objects with custom
Symbol.toStringTag
properties.
Symbol.toStringTag
is a built-in symbol that a constructor can use to customize the
default string description of objects.
Optional
object: unknownThe value to check.
Alias