{"_id":"object.omit","_rev":"26445","name":"object.omit","description":"Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:02:40.000Z","created":"2014-10-06T04:33:46.399Z","3.0.0":"2017-09-04T03:45:11.081Z","2.0.1":"2016-10-27T06:24:45.221Z","2.0.0":"2015-07-22T06:19:37.141Z","1.1.0":"2015-04-09T04:48:33.812Z","0.2.1":"2014-10-25T23:48:38.519Z","0.2.0":"2014-10-06T04:33:46.399Z"},"users":{"jonschlinkert":true,"evocateur":true,"icerainnuaa":true,"shuoshubao":true,"ungurys":true,"andfaulkner":true,"rocket0191":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/object.omit.git"},"versions":{"3.0.0":{"name":"object.omit","description":"Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.","version":"3.0.0","homepage":"https://github.com/jonschlinkert/object.omit","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Federico Brigante","url":"https://twitter.com/bfred_it"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/object.omit.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.omit/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"is-extendable":"^1.0.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.0"},"keywords":["clear","delete","key","object","omit","property","remove","value"],"verb":{"related":{"list":["object.defaults","object.filter","object.pick","object.pluck","object.reduce"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"97dc286ae4c6743d5738880555e4cdb876df24d9","_id":"object.omit@3.0.0","_npmVersion":"5.4.0","_nodeVersion":"8.4.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"0e3edc2fce2ba54df5577ff529f6d97bd8a522af","size":3188,"noattachment":false,"key":"/object.omit/-/object.omit-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.omit/download/object.omit-3.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/object.omit-3.0.0.tgz_1504496710185_0.46701549529097974"},"directories":{},"publish_time":1504496711081,"_hasShrinkwrap":false,"_cnpm_publish_time":1504496711081},"2.0.1":{"name":"object.omit","description":"Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.","version":"2.0.1","homepage":"https://github.com/jonschlinkert/object.omit","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/object.omit.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.omit/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.4","is-extendable":"^0.1.1"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.1.2","should":"^11.1.1"},"keywords":["clear","delete","key","object","omit","property","remove","value"],"verb":{"related":{"list":["object.defaults","object.filter","object.pick","object.pluck","object.reduce"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-generate-readme"]},"gitHead":"6634673e6e88c65796f1df4bcb787dede6dc7ffc","_id":"object.omit@2.0.1","_shasum":"1a9c744829f39dbb858c76ca3579ae2a54ebd1fa","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1a9c744829f39dbb858c76ca3579ae2a54ebd1fa","size":3032,"noattachment":false,"key":"/object.omit/-/object.omit-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.omit/download/object.omit-2.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/object.omit-2.0.1.tgz_1477549482527_0.48828932945616543"},"directories":{},"publish_time":1477549485221,"_cnpm_publish_time":1477549485221,"_hasShrinkwrap":false},"2.0.0":{"name":"object.omit","description":"Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/object.omit","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/object.omit.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.omit/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"for-own":"^0.1.3","is-extendable":"^0.1.1"},"devDependencies":{"mocha":"*","should":"*"},"verb":{"related":{"list":["object.filter","object.pick","object.pluck","object.reduce","object.defaults"]}},"keywords":["clear","delete","key","value","object","omit","property","remove"],"gitHead":"6e222f2cf39634faa26f642b06af4eb2050b5e75","_id":"object.omit@2.0.0","_shasum":"868597333d54e60662940bb458605dd6ae12fe94","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"868597333d54e60662940bb458605dd6ae12fe94","size":2550,"noattachment":false,"key":"/object.omit/-/object.omit-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.omit/download/object.omit-2.0.0.tgz"},"directories":{},"publish_time":1437545977141,"_cnpm_publish_time":1437545977141,"_hasShrinkwrap":false},"1.1.0":{"name":"object.omit","description":"Return a copy of an object without the given key, or array of keys.","version":"1.1.0","homepage":"https://github.com/jonschlinkert/object.omit","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.omit.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.omit/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/object.omit/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"keywords":["clear","delete","key","value","object","omit","property","remove"],"dependencies":{"for-own":"^0.1.3","isobject":"^1.0.0"},"devDependencies":{"mocha":"^2.2.4","should":"^5.2.0"},"gitHead":"9dc4d35d57b04515e32c644cf7c59d0e0f363137","_id":"object.omit@1.1.0","_shasum":"9d17ea16778e5057deba7752c6f55f1496829e94","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9d17ea16778e5057deba7752c6f55f1496829e94","size":2280,"noattachment":false,"key":"/object.omit/-/object.omit-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.omit/download/object.omit-1.1.0.tgz"},"directories":{},"publish_time":1428554913812,"_cnpm_publish_time":1428554913812,"_hasShrinkwrap":false},"0.2.1":{"name":"object.omit","description":"Return a copy of an object without the given keys.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/object.omit","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.omit.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.omit/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/object.omit/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb-tag-jscomments":">= 0.2.0","verb":">= 0.2.6","mocha":"*"},"keywords":["clean","clear","copy","dash","delete","javascript","js","key","lo","lo-dash","lodash","object","omit","property","remove","underscore","util","utilities","utils"],"dependencies":{"for-own":"^0.1.1","isobject":"^0.2.0"},"_id":"object.omit@0.2.1","_shasum":"ca9af6631df6883fe61bae74df82a4fbc9df2e92","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ca9af6631df6883fe61bae74df82a4fbc9df2e92","size":3248,"noattachment":false,"key":"/object.omit/-/object.omit-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.omit/download/object.omit-0.2.1.tgz"},"directories":{},"publish_time":1414280918519,"_cnpm_publish_time":1414280918519,"_hasShrinkwrap":false},"0.2.0":{"name":"object.omit","description":"Return a copy of an object without the given keys.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/object.omit","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/object.omit.git"},"bugs":{"url":"https://github.com/jonschlinkert/object.omit/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/object.omit/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb-tag-jscomments":">= 0.2.0","verb":">= 0.2.6","mocha":"*"},"keywords":["clean","clear","copy","dash","delete","javascript","js","key","lo","lo-dash","lodash","object","omit","property","remove","underscore","util","utilities","utils"],"dependencies":{"for-own":"^0.1.1","isobject":"^0.2.0"},"_id":"object.omit@0.2.0","_shasum":"78d66ae4881e55bf7fd9a3813a376bccb592e5e7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"78d66ae4881e55bf7fd9a3813a376bccb592e5e7","size":3191,"noattachment":false,"key":"/object.omit/-/object.omit-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/object.omit/download/object.omit-0.2.0.tgz"},"directories":{},"publish_time":1412570026399,"_cnpm_publish_time":1412570026399,"_hasShrinkwrap":false}},"readme":"# object.omit [![NPM version](https://img.shields.io/npm/v/object.omit.svg?style=flat)](https://www.npmjs.com/package/object.omit) [![NPM monthly downloads](https://img.shields.io/npm/dm/object.omit.svg?style=flat)](https://npmjs.org/package/object.omit) [![NPM total downloads](https://img.shields.io/npm/dt/object.omit.svg?style=flat)](https://npmjs.org/package/object.omit) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/object.omit.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/object.omit)\n\n> Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.\n\nFollow this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), for updates on this project and others.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save object.omit\n```\n\n## Usage\n\n```js\nvar omit = require('object.omit');\n```\n\nPass a string `key` to omit:\n\n```js\nomit({a: 'a', b: 'b', c: 'c'}, 'a')\n//=> { b: 'b', c: 'c' }\n```\n\nPass an array of `keys` to omit:\n\n```js\nomit({a: 'a', b: 'b', c: 'c'}, ['a', 'c'])\n//=> { b: 'b' }\n```\n\nReturns the object if no keys are passed:\n\n```js\nomit({a: 'a', b: 'b', c: 'c'})\n//=> {a: 'a', b: 'b', c: 'c'}\n```\n\nReturns an empty object if no value is passed.\n\n```js\nomit()\n//=> {}\n```\n\n### Filter function\n\nAn optional filter function may be passed as the last argument, with or without keys passed on the arguments:\n\n**filter on keys**\n\n```js\nvar res = omit({a: 'a', b: 'b', c: 'c'}, function (val, key) {\n  return key === 'a';\n});\n//=> {a: 'a'}\n```\n\n**filter on values**\n\n```js\nvar fn = function() {};\nvar obj = {a: 'a', b: 'b', c: fn};\n\nvar res = omit(obj, ['a'], function (val, key) {\n  return typeof val !== 'function';\n});\n//=> {b: 'b'}\n```\n\n## About\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [object.defaults](https://www.npmjs.com/package/object.defaults): Like `extend` but only copies missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/object.defaults \"Like `extend` but only copies missing properties/values to the target object.\")\n* [object.filter](https://www.npmjs.com/package/object.filter): Create a new object filtered to have only properties for which the callback returns true. | [homepage](https://github.com/jonschlinkert/object.filter \"Create a new object filtered to have only properties for which the callback returns true.\")\n* [object.pick](https://www.npmjs.com/package/object.pick): Returns a filtered copy of an object with only the specified keys, similar to `_.pick… [more](https://github.com/jonschlinkert/object.pick) | [homepage](https://github.com/jonschlinkert/object.pick \"Returns a filtered copy of an object with only the specified keys, similar to`_.pick` from lodash / underscore.\")\n* [object.pluck](https://www.npmjs.com/package/object.pluck): Like pluck from underscore / lo-dash, but returns an object composed of specified properties, with… [more](https://github.com/jonschlinkert/object.pluck) | [homepage](https://github.com/jonschlinkert/object.pluck \"Like pluck from underscore / lo-dash, but returns an object composed of specified properties, with values unmodified from those of the original object.\")\n* [object.reduce](https://www.npmjs.com/package/object.reduce): Reduces an object to a value that is the accumulated result of running each property… [more](https://github.com/jonschlinkert/object.reduce) | [homepage](https://github.com/jonschlinkert/object.reduce \"Reduces an object to a value that is the accumulated result of running each property in the object through a callback.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 21 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 1 | [bfred-it](https://github.com/bfred-it) |\n\n### Building docs\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### Running tests\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### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [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.6.0, on September 03, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/object.omit","bugs":{"url":"https://github.com/jonschlinkert/object.omit/issues"},"license":"MIT"}