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