isPOJO(x: unknown): x is Readonly<Record<string, unknown>>
This is named isPOJO ("Plain Old JavaScript Object)
rather than isObject to emphasize that it does not test for
anything that broadly derives from the Object type.
It is instead intended to exclude arrays, null, and other entities
not of the "curly brace" type.
This is named isPOJO ("Plain Old JavaScript Object) rather than isObject to emphasize that it does not test for anything that broadly derives from the Object type. It is instead intended to exclude arrays, null, and other entities not of the "curly brace" type.
Example