{"_id":"clone-object","_rev":"108905","name":"clone-object","description":"Create a shallow clone of an object.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:40:28.000Z","created":"2014-06-30T09:32:19.394Z","0.1.0":"2014-06-30T09:32:19.394Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/clone-object.git"},"versions":{"0.1.0":{"name":"clone-object","description":"Create a shallow clone of an object.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/clone-object","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/clone-object.git"},"bugs":{"url":"https://github.com/jonschlinkert/clone-object/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/clone-object/blob/master/LICENSE-MIT"}],"keywords":["clone","util","array","object","shallow","deep","utils"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"chai":"~1.9.1","mocha":"*","verb":"~0.2.6","xtend":"^3.0.0"},"_id":"clone-object@0.1.0","_shasum":"a0242c7c305f69e0c65a2aa9d995f5a047825de1","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a0242c7c305f69e0c65a2aa9d995f5a047825de1","size":2735,"noattachment":false,"key":"/clone-object/-/clone-object-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/clone-object/download/clone-object-0.1.0.tgz"},"directories":{},"publish_time":1404120739394,"_cnpm_publish_time":1404120739394,"_hasShrinkwrap":false}},"readme":"# clone-object [![NPM version](https://badge.fury.io/js/clone-object.png)](http://badge.fury.io/js/clone-object)\n\n> Create a shallow clone of an object.\n\n## Install\nInstall with [npm](npmjs.org):\n\n```bash\nnpm i clone-object --save-dev\n```\n\n## Usage\n\n```js\nclone(obj);\n```\n\nShallow clone an object.\n\n* `obj` {Object} `obj` The object to clone.\n* `return` {Object} The new object.\n\n## Example\n\n```js\nvar extend = require('xtend');\nvar a = {foo: 'alpha', bar: 'beta', baz: 'gamma'};\nvar b = cloneObject(a);\na = extend(a, {quux: 'delta'});\n\nconsole.log('a:', a);\n//=> a: { foo: 'alpha', bar: 'beta', baz: 'gamma', quux: 'delta' }\nconsole.log('b:', b);\n//=> b: { foo: 'alpha', bar: 'beta', baz: 'gamma' }\n```\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors.  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 30, 2014._","_attachments":{},"homepage":"https://github.com/jonschlinkert/clone-object","bugs":{"url":"https://github.com/jonschlinkert/clone-object/issues"}}