import { Deep } from "https://deno.land/x/rimbu@1.2.0/deep/mod.ts";
const { matchAtWith } = Deep;
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' }]