Loading homepage
Input: applyJSONPatch({ tags: ["a", "c"], name: "old" }, [{ op: "add", path: "/tags/1", value: "b" }, { op: "replace", path: "/name", value: "new" }]); Output: { tags: ["a", "b", "c"], name: "new" }
Input: applyJSONPatch({ "a/b": 1 }, [{ op: "remove", path: "/a~1b" }]); Output: {}
Implement the exported API in index.js or index.ts. Tests cover the contract and edge cases below.