isPlainObject()function
isPlainObject(value: unknown): value is ImmutableObject
| Param | Type | |
|---|---|---|
value | unknown | The value to test. required |
| Return | |
|---|---|
value is ImmutableObject | true if value is a plain object, narrowing its type. |
Is an unknown value a plain object?
- A plain object is one whose prototype is
Object.prototypeornull(i.e. not a class instance).