1234567891011121314151617181920 |
- 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 default baseUnset;
|