ae1351a066a4049881c4ce65831db0b96cbd60d5c3bd553c18b6b44176c0d76c.json 689 B

1
  1. {"ast":null,"code":"import castPath from './_castPath.js';\nimport last from './last.js';\nimport parent from './_parent.js';\nimport toKey from './_toKey.js';\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n}\nexport default baseUnset;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}