{"_id":"clone-shallow","_rev":"6-433460e1a3d6cc4337c5c5f7e7fa0b37","name":"clone-shallow","description":"Shallow clone objects and arrays, or return primitive values directly.","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"clone-shallow","description":"Shallow clone objects and arrays, or return primitive values directly.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/clone-shallow","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/clone-shallow.git"},"bugs":{"url":"https://github.com/jonschlinkert/clone-shallow/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/clone-shallow/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":{"verb":"~0.2.6","chai":"~1.9.1","mocha":"*"},"_id":"clone-shallow@0.1.0","_shasum":"1c24a8afedc86b0dd886b4cdfb5e099f1dc17497","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1c24a8afedc86b0dd886b4cdfb5e099f1dc17497","tarball":"https://registry.npmjs.org/clone-shallow/-/clone-shallow-0.1.0.tgz","integrity":"sha512-5k7iI/3nltz1BLqSMBwU2bi0AEK3o/CmiKJTcf5SJjUgseu6BV9Pdefb9UZEzs6ht4we1/+sXM7gHOk1T/gP9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvNPy4ds8WMPTOF9DogOletCMy3SJ//4mfSW5uPpT7xAiEAuvZuu+Nbzo2Jwm4TATlAlAnn+1AvYp2v7oTcRr0UEIo="}]}},"0.1.1":{"name":"clone-shallow","description":"Shallow clone objects and arrays, or return primitive values directly.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/clone-shallow","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/clone-shallow.git"},"bugs":{"url":"https://github.com/jonschlinkert/clone-shallow/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/clone-shallow/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":{"verb":"~0.2.6","chai":"~1.9.1","mocha":"*"},"dependencies":{"clone-array":"^0.1.1","clone-object":"^0.1.0"},"_id":"clone-shallow@0.1.1","_shasum":"69b0001dfdbf7042c0bb77bbefd971311c9be4f8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"69b0001dfdbf7042c0bb77bbefd971311c9be4f8","tarball":"https://registry.npmjs.org/clone-shallow/-/clone-shallow-0.1.1.tgz","integrity":"sha512-uEpYAdqEI+kaH2x3Bbly26tvI/G4rkI1Bs8MLS5RuxBfY2xbgKWeOdVgClXHcSbsk9AcAyEBkmSCzi0CGsmtZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgOfRjHP9qKLoMU2dHYOOCHRrl4I8AhCoIkU2690uvTQIgNdMqA0QvVZVG3gwE8gnwQ+9RzGDbDHIE4w0TLKI/PG4="}]}}},"readme":"# clone-shallow [![NPM version](https://badge.fury.io/js/clone-shallow.png)](http://badge.fury.io/js/clone-shallow)\n\n> Shallow clone objects and arrays, or return primitive values directly.\n\n## Install\nInstall with [npm](npmjs.org):\n\n```bash\nnpm i clone-shallow --save-dev\n```\n\n## Usage\n\n```js\nclone(value);\n```\n\n* `value` {*} The value to clone.\n* `return` {*} The cloned value.\n\n## Example\n\nArrays:\n\n```js\nvar a = ['a', 'b', 'c'];\nvar b = clone(a);\na = a.concat('new');\n\nconsole.log('a:', a);\n//=> a: [ 'a', 'b', 'c', 'new' ]\n\nconsole.log('b:', b);\n//=> b: [ 'a', 'b', 'c' ]\n```\nObjects:\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\nAlso see:\n\n* [clone-array](https://github.com/jonschlinkert/clone-array) if you just need to clone arrays.\n* [clone-object](https://github.com/jonschlinkert/clone-object) if you just need to clone objects.\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._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-13T06:11:37.708Z","created":"2014-06-30T09:40:25.847Z","0.1.0":"2014-06-30T09:40:25.847Z","0.1.1":"2014-06-30T11:00:13.062Z"},"homepage":"https://github.com/jonschlinkert/clone-shallow","keywords":["clone","util","array","object","shallow","deep","utils"],"repository":{"type":"git","url":"git://github.com/jonschlinkert/clone-shallow.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/clone-shallow/issues"},"readmeFilename":"README.md"}