import { Deep } from "https://deno.land/x/rimbu@1.2.0/deep/internal.ts";
const { matchWith } = Deep;
Returns a function that matches a given value
with the given matcher
.
Examples
Example 1
Example 1
const items = [{ a: 1, b: 'a' }, { a: 2, b: 'b' }];
items.filter(Deep.matchWith({ a: 2 }));
// => [{ a: 2, b: 'b' }]