Unlike isOrdinaryObject, this function preserves the existing static type of the variable rather than
narrowing it to a generic indexable structure. It accepts plain objects, custom-prototype objects, and ordinary
class instances, while rejecting arrays, functions, primitives, and specialized built-in objects.
Use this function when:
- Youexpectavaluetobeanordinaryobjectatruntime, **and** - Youwanttokeepitscompile-timetypeintact after validation.
Asserts that a value is an ordinary object.
Unlike isOrdinaryObject, this function preserves the existing static type of the variable rather than narrowing it to a generic indexable structure. It accepts plain objects, custom-prototype objects, and ordinary class instances, while rejecting arrays, functions, primitives, and specialized built-in objects.
Use this function when: