@gameye/sdk
Version:
Node.js SDK for Gameye
12 lines • 384 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const deepkit_1 = require("deepkit");
function reducePatch(state, patches) {
return deepkit_1.transform(state, ({ set }) => {
for (const patch of patches) {
set(patch.path, patch.value);
}
});
}
exports.reducePatch = reducePatch;
//# sourceMappingURL=patch-reducer.js.map