wonder.js
Version:
13 lines (9 loc) • 333 B
JavaScript
;
var Caml_array = require("bs-platform/lib/js/caml_array.js");
function restore(currentState, targetState) {
var newrecord = Caml_array.caml_array_dup(targetState);
newrecord[/* globalTempRecord */37] = currentState[/* globalTempRecord */37];
return newrecord;
}
exports.restore = restore;
/* No side effect */