"use strict";
const _castPath = require("./_castPath.js");
const last$1 = require("./last.js");
const _parent = require("./_parent.js");
const _toKey = require("./_toKey.js");
var castPath = _castPath, last = last$1, parent = _parent, toKey = _toKey;
function baseUnset(object, path) {
  path = castPath(path, object);
  object = parent(object, path);
  return object == null || delete object[toKey(last(path))];
}
var _baseUnset = baseUnset;
module.exports = _baseUnset;
//# sourceMappingURL=_baseUnset.js.map
