vue-app-sdk
Version:
13 lines (12 loc) • 336 B
JavaScript
import castPath from "./_castPath.js";
import last from "./last.js";
import parent from "./_parent.js";
import toKey from "./_toKey.js";
function baseUnset(object, path) {
path = castPath(path, object);
object = parent(object, path);
return object == null || delete object[toKey(last(path))];
}
export {
baseUnset as default
};