Move forgotten Delete symbol

master
Sven Slootweg 2 years ago
parent aed19b8171
commit 12a9cc24db

@ -1,5 +1,7 @@
"use strict";
const Delete = Symbol("DeleteProperty");
module.exports = function immutableDeepMerge(object1, object2) {
let hasChanges = false;
let changedProperties = { };
@ -48,3 +50,5 @@ module.exports = function immutableDeepMerge(object1, object2) {
return object1;
}
};
module.exports.Delete = Delete;

@ -14,8 +14,6 @@ const compose = require("../util/compose");
// FIXME: table/row terminology etc.
// FIXME: replace asserts with proper checks and error messages
const Delete = Symbol("DeleteProperty");
// TODO: Find a way to roll this into merge-by-template somehow? The main difference is specifying dynamic transforms at rule definition time (and needing to use meta-objects in the mergeable) vs. specifying dynamic transforms at merge time directly
// TODO: Add API for "set this object literally, no merge"
// FIXME: Find a way to support arrays? Particularly objects *within* arrays, which would also need to be merged recursively...

Loading…
Cancel
Save