An object guard factory with schema-based property validation.
The returned guard checks if a value is a plain object and validates each property against the schema.
rest is omitted, the object is closed: unlisted properties are rejectedrest is provided, the object is open: unlisted properties are validated with the rest guard
An object guard factory.
Param: a
Key guard or property schema
Param: b
Value guard (key guard mode) or guard for unlisted properties (schema mode)