UNPKG

@dooboostore/simple-boot-http-server

Version:

back end http server frameworks

11 lines 272 B
import jsonpatch from 'fast-json-patch'; export class PatchJson { constructor(patch) { this.patch = patch; } apply(obj) { obj = jsonpatch.applyPatch(obj, this.patch).newDocument; return obj; } } //# sourceMappingURL=PatchJson.js.map