Open danielb2 opened 7 years ago
objectPath.move(obj, 'old.path', 'new.path');
instead of:
const path = objectPath.get(obj, 'old.path'); objectPath.set(obj, 'new.path', path); objectPath.del(obj, 'old.path');
ObjectPath.mv = function (obj, src, dst) { const data = ObjectPath.get(obj, src); if (!data) { return; } ObjectPath.set(obj, dst, data); ObjectPath.del(obj, src); };
instead of: