Asserts that a value is a plain object, not null, and not an array.
Unlike isPlainObject, this function does not narrow the value to a generic indexable structure. Instead,
it preserves the existing static type of the variable. This makes it ideal for validating option objects or
interface-based inputs where all properties may be optional.
Use this function when:
- Youexpectavaluetobeaplainobjectatruntime, **and** - Youwanttokeepitscompile-timetypeintact after validation.
Asserts that a value is a plain object, not null, and not an array.
Unlike isPlainObject, this function does not narrow the value to a generic indexable structure. Instead, it preserves the existing static type of the variable. This makes it ideal for validating option objects or interface-based inputs where all properties may be optional.
Use this function when: