{"_id":"unset-value","_rev":"287073","name":"unset-value","description":"Delete nested properties from an object using dot notation.","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"jonschlinkert","email":""}],"time":{"modified":"2023-09-20T22:03:16.000Z","created":"2015-08-27T07:59:45.273Z","2.0.1":"2022-02-11T12:24:42.276Z","2.0.0":"2021-03-18T10:15:38.516Z","1.0.0":"2017-02-25T22:27:15.940Z","0.1.2":"2017-02-25T22:26:57.734Z","0.1.1":"2015-10-30T19:55:39.243Z","0.1.0":"2015-08-27T07:59:45.273Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"versions":{"2.0.1":{"name":"unset-value","description":"Delete nested properties from an object using dot notation.","version":"2.0.1","homepage":"https://github.com/jonschlinkert/unset-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"email":"wtgtybhertgeghgtwtg@gmail.com","url":"https://github.com/wtgtybhertgeghgtwtg"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT","main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"scripts":{"test":"mocha"},"dependencies":{"has-value":"^2.0.2","isobject":"^4.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"*","should":"*"},"keywords":["del","delete","key","object","omit","prop","property","remove","unset","value"],"verb":{"related":{"list":["get-value","get-values","omit-value","put-value","set-value","union-value","upsert-value"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"3f61f4fc28bd40252c0e86f1bfab0a27a347e9f9","_id":"unset-value@2.0.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"shasum":"57bed0c22d26f28d69acde5df9a11b77c74d2df3","size":3686,"noattachment":false,"key":"/unset-value/-/unset-value-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/unset-value/download/unset-value-2.0.1.tgz"},"_npmUser":{"name":"danez","email":"npm@tschinder.de"},"directories":{},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"jonschlinkert","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unset-value_2.0.1_1644582282138_0.7628599866361732"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-11T12:24:49.671Z","publish_time":1644582282276,"_cnpm_publish_time":1644582282276},"2.0.0":{"name":"unset-value","description":"Delete nested properties from an object using dot notation.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/unset-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"email":"wtgtybhertgeghgtwtg@gmail.com","url":"https://github.com/wtgtybhertgeghgtwtg"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT","main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"scripts":{"test":"mocha"},"dependencies":{"has-value":"^2.0.2","isobject":"^4.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"*","should":"*"},"keywords":["del","delete","key","object","omit","prop","property","remove","unset","value"],"verb":{"related":{"list":["get-value","get-values","omit-value","put-value","set-value","union-value","upsert-value"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"856b97b72c377374f43349557b90fa6e5dd671a1","_id":"unset-value@2.0.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"shasum":"97f65b60a86cdd40d7371d4c933ad27212ee3f9c","size":3575,"noattachment":false,"key":"/unset-value/-/unset-value-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/unset-value/download/unset-value-2.0.0.tgz"},"_npmUser":{"name":"danez","email":"daniel@tschinder.de"},"directories":{},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"jonschlinkert","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unset-value_2.0.0_1616062538379_0.3028235666357879"},"_hasShrinkwrap":false,"publish_time":1616062538516,"_cnpm_publish_time":1616062538516,"_cnpmcore_publish_time":"2021-12-13T14:46:56.584Z"},"1.0.0":{"name":"unset-value","description":"Delete nested properties from an object using dot notation.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/unset-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"email":"wtgtybhertgeghgtwtg@gmail.com","url":"https://github.com/wtgtybhertgeghgtwtg"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"has-value":"^0.3.1","isobject":"^3.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"*","should":"*"},"keywords":["del","delete","key","object","omit","prop","property","remove","unset","value"],"verb":{"related":{"list":["get-value","get-values","omit-value","put-value","set-value","union-value","upsert-value"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"36b62353cde18d6be17a1c0dc080fddcc262d2da","_id":"unset-value@1.0.0","_shasum":"8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"jonschlinkert","email":""}],"dist":{"shasum":"8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559","size":3169,"noattachment":false,"key":"/unset-value/-/unset-value-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/unset-value/download/unset-value-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/unset-value-1.0.0.tgz_1488061635259_0.42952891532331705"},"directories":{},"publish_time":1488061635940,"_cnpm_publish_time":1488061635940,"_hasShrinkwrap":false},"0.1.2":{"name":"unset-value","description":"Delete nested properties from an object using dot notation.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/unset-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"email":"wtgtybhertgeghgtwtg@gmail.com","url":"https://github.com/wtgtybhertgeghgtwtg"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"has-value":"^0.3.1","isobject":"^3.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"*","should":"*"},"keywords":["del","delete","key","object","omit","prop","property","remove","unset","value"],"verb":{"related":{"list":["get-value","get-values","omit-value","put-value","set-value","union-value","upsert-value"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"b4eb4edfca512c173cb91eea08a0f0effa5df9fc","_id":"unset-value@0.1.2","_shasum":"506810b867f27c2a5a6e9b04833631f6de58d310","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"jonschlinkert","email":""}],"dist":{"shasum":"506810b867f27c2a5a6e9b04833631f6de58d310","size":3169,"noattachment":false,"key":"/unset-value/-/unset-value-0.1.2.tgz","tarball":"http://name.csiicloud.com:7001/unset-value/download/unset-value-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unset-value-0.1.2.tgz_1488061615885_0.7473359440919012"},"directories":{},"publish_time":1488061617734,"_cnpm_publish_time":1488061617734,"_hasShrinkwrap":false},"0.1.1":{"name":"unset-value","description":"Delete nested properties from an object using dot notation.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/unset-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"has-value":"^0.2.1","isobject":"^2.0.0"},"devDependencies":{"mocha":"*","should":"*"},"verb":{"related":{"description":"","list":["get-value","get-values","omit-value","put-value","set-value","union-value","upsert-value"]}},"keywords":["del","delete","key","object","omit","prop","property","remove","unset","value"],"gitHead":"6fc6e855657bec006a2adbe136391a5cbd169724","_id":"unset-value@0.1.1","_shasum":"60bfdcaeaa16a4db88c95e6e79c18dd1eef97922","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"jonschlinkert","email":""}],"dist":{"shasum":"60bfdcaeaa16a4db88c95e6e79c18dd1eef97922","size":2592,"noattachment":false,"key":"/unset-value/-/unset-value-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/unset-value/download/unset-value-0.1.1.tgz"},"directories":{},"publish_time":1446234939243,"_cnpm_publish_time":1446234939243,"_hasShrinkwrap":false},"0.1.0":{"name":"unset-value","description":"Delete nested properties from an object using dot notation.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/unset-value","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/unset-value.git"},"bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"has-value":"^0.2.0","isobject":"^2.0.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"verb":{"related":{"list":["get-value","get-values","omit-value","put-value","set-value","union-value","upsert-value"]}},"_id":"unset-value@0.1.0","_shasum":"fbaafe2fe1f17a9a58e25d1fc48c58fb47cf0ec6","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"danez","email":"daniel@tschinder.de"},{"name":"jonschlinkert","email":""}],"dist":{"shasum":"fbaafe2fe1f17a9a58e25d1fc48c58fb47cf0ec6","size":2455,"noattachment":false,"key":"/unset-value/-/unset-value-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/unset-value/download/unset-value-0.1.0.tgz"},"directories":{},"publish_time":1440662385273,"_cnpm_publish_time":1440662385273,"_hasShrinkwrap":false}},"readme":"# unset-value [![NPM version](https://img.shields.io/npm/v/unset-value.svg?style=flat)](https://www.npmjs.com/package/unset-value) [![NPM monthly downloads](https://img.shields.io/npm/dm/unset-value.svg?style=flat)](https://npmjs.org/package/unset-value) [![NPM total downloads](https://img.shields.io/npm/dt/unset-value.svg?style=flat)](https://npmjs.org/package/unset-value) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/unset-value.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/unset-value) \n\n> Delete nested properties from an object using dot notation.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save unset-value\n```\n\n## Usage\n\n```js\nvar unset = require('unset-value');\nunset(obj, prop);\n```\n\n### Params\n\n* `obj` **{object}**: The object to unset `prop` on\n* `prop` **{string | string[]}**: The property to unset. Dot-notation may be used or an array of nested properties.\n\n## Examples\n\n### Updates the object when a property is deleted\n\n```js\nvar obj = {a: 'b'};\nunset(obj, 'a');\nconsole.log(obj);\n//=> {}\n```\n\n### Returns true when a property is deleted\n\n```js\nunset({a: 'b'}, 'a') // true\n```\n\n### Returns `true` when a property does not exist\n\nThis is consistent with `delete` behavior in that it does not\nthrow when a property does not exist.\n\n```js\nunset({a: {b: {c: 'd'}}}, 'd') // true\n```\n\n### delete nested values\n\n```js\nvar one = {a: {b: {c: 'd'}}};\nunset(one, 'a.b');\nconsole.log(one);\n//=> {a: {}}\n\nvar two = {a: {b: {c: 'd'}}};\nunset(two, ['a', 'b', 'c']);\nconsole.log(two);\n//=> {a: {b: {}}}\n\nvar three = {a: {b: {c: 'd', e: 'f'}}};\nunset(three, 'a.b.c');\nconsole.log(three);\n//=> {a: {b: {e: 'f'}}}\n```\n\n### throws on invalid args\n\n```js\nunset();\n// 'expected an object.'\n```\n\n## About\n<details>\n  <summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n  <summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n  <summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects: \n\n- [get-value](https://www.npmjs.com/package/get-value): Use property paths like 'a.b.c' to get a nested value from an object. Even works… [more](https://github.com/jonschlinkert/get-value) | [homepage](https://github.com/jonschlinkert/get-value \"Use property paths like 'a.b.c' to get a nested value from an object. Even works when keys have dots in them (no other dot-prop library can do this!).\")\n- [get-values](https://www.npmjs.com/package/get-values): Return an array of all values from the given object. | [homepage](https://github.com/jonschlinkert/get-values \"Return an array of all values from the given object.\")\n- [omit-value](https://www.npmjs.com/package/omit-value): Omit properties from an object or deeply nested property of an object using object path… [more](https://github.com/jonschlinkert/omit-value) | [homepage](https://github.com/jonschlinkert/omit-value \"Omit properties from an object or deeply nested property of an object using object path notation.\")\n- [put-value](https://www.npmjs.com/package/put-value): Update only existing values from an object, works with dot notation paths like `a.b.c` and… [more](https://github.com/tunnckocore/put-value#readme) | [homepage](https://github.com/tunnckocore/put-value#readme \"Update only existing values from an object, works with dot notation paths like `a.b.c` and support deep nesting.\")\n- [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value \"Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.\")\n- [union-value](https://www.npmjs.com/package/union-value): Set an array of unique values as the property of an object. Supports setting deeply… [more](https://github.com/jonschlinkert/union-value) | [homepage](https://github.com/jonschlinkert/union-value \"Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.\")\n- [upsert-value](https://www.npmjs.com/package/upsert-value): Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/doowb/upsert-value \"Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths.\")  \n\n### Contributors\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 11 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 4  | [danez](https://github.com/danez) |  \n| 2  | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |  \n| 1  | [TrySound](https://github.com/TrySound) |  \n| 1  | [bluelovers](https://github.com/bluelovers) |  \n\n### Author\n**Jon Schlinkert**\n+ [GitHub Profile](https://github.com/jonschlinkert)\n+ [Twitter Profile](https://twitter.com/jonschlinkert)\n+ [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\nCopyright © 2021, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on March 18, 2021._\n\n","_attachments":{},"homepage":"https://github.com/jonschlinkert/unset-value","bugs":{"url":"https://github.com/jonschlinkert/unset-value/issues"},"license":"MIT"}