import { omit } from "../omit"; test("example 1", () => { const path = ["a", "b", "c"]; const record = { a: 1, b: 2, c: 3 }; const output = {}; expect(omit(path, record)).toEqual(output); }); test("example 2", () => { const path = ["a", "b"]; const record = { a: 1, b: 2, c: 3 }; const output = { c: 3 }; expect(omit(path, record)).toEqual(output); });