import { Deep } from "https://deno.land/x/rimbu@0.13.1/deep/internal.ts";
const { patchWith } = Deep;
Returns a function that patches a given source
with the given patchItems
.
Examples
Example 1
Example 1
const items = [{ a: 1, b: 'a' }, { a: 2, b: 'b' }];
items.map(Deep.patchWith([{ a: v => v + 1 }]));
// => [{ a: 2, b: 'a' }, { a: 3, b: 'b' }]