matches
Object.matches(target, props)
Checks if all properties in props object have equal values in target object.
Example
ts
import { Object } from "@monstermann/object";
Object.matches({ a: 1, b: 2, c: 3 }, { a: 1, b: 2 }); // true
Object.matches({ a: 1, b: 2, c: 3 }, { a: 1, b: 3 }); // falsets
import { Object } from "@monstermann/object";
pipe({ a: 1, b: 2, c: 3 }, Object.matches({ a: 1, b: 2 })); // true
pipe({ a: 1, b: 2, c: 3 }, Object.matches({ a: 1, b: 3 })); // false