The type of the object to check.
The object to check for properties.
An object whose keys are property names and values are the values to compare against.
A Result
object with either a boolean indicating if all properties exist in the
object with the specified values, or an Error
object if any of the properties are missing or
have different values.
Generated using TypeDoc v0.24.7
Checks if an object has the specified properties with the given values.
Remarks
This function uses the hasPropertyValue function to check if the object has the specified property with the given value as well as the type is the same.
Example
Check if person object has name and email properties with the specified values:
Example
Check if person object has name and email properties with different values:
Example
Check if person object has
surname
property with the specified value: