{"_id":"shallow-equals","_rev":"210375","name":"shallow-equals","description":"Determine if an array or object is equivalent with another, *not* recursively","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2021-06-03T15:28:37.000Z","created":"2014-02-26T12:40:10.202Z","1.0.0":"2017-02-12T23:10:00.282Z","0.0.1":"2017-02-12T23:09:32.500Z","0.0.0":"2014-02-26T12:40:10.202Z"},"users":{"hustler":true},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"repository":{"type":"git","url":"git://github.com/hughsk/shallow-equals.git"},"versions":{"1.0.0":{"name":"shallow-equals","description":"Determine if an array or object is equivalent with another, *not* recursively","version":"1.0.0","main":"index.js","browser":"index.js","dependencies":{},"devDependencies":{"tape":"~2.5.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/shallow-equals.git"},"bugs":{"url":"https://github.com/hughsk/shallow-equals/issues"},"homepage":"https://github.com/hughsk/shallow-equals","keywords":["shallow","equals","compare","equality","check","test"],"gitHead":"4a18dcddf7400d6effbdabdc26fc99413a7cb3b6","_id":"shallow-equals@1.0.0","_shasum":"24b74bf1c634c11ed4c7182a6df6fb300dce4390","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"dist":{"shasum":"24b74bf1c634c11ed4c7182a6df6fb300dce4390","size":2696,"noattachment":false,"key":"/shallow-equals/-/shallow-equals-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallow-equals/download/shallow-equals-1.0.0.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/shallow-equals-1.0.0.tgz_1486940998379_0.3298919638618827"},"directories":{},"publish_time":1486941000282,"_cnpm_publish_time":1486941000282,"_hasShrinkwrap":false},"0.0.1":{"name":"shallow-equals","description":"Determine if an array or object is equivalent with another, *not* recursively","version":"0.0.1","main":"index.js","browser":"index.js","dependencies":{},"devDependencies":{"tape":"~2.5.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/shallow-equals.git"},"bugs":{"url":"https://github.com/hughsk/shallow-equals/issues"},"homepage":"https://github.com/hughsk/shallow-equals","keywords":["shallow","equals","compare","equality","check","test"],"gitHead":"e8c5b79d675da3e574da40db22e0487863b05dc4","_id":"shallow-equals@0.0.1","_shasum":"e9a829774ff45d35f471f3efe8c2967395eb0f12","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"dist":{"shasum":"e9a829774ff45d35f471f3efe8c2967395eb0f12","size":2693,"noattachment":false,"key":"/shallow-equals/-/shallow-equals-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallow-equals/download/shallow-equals-0.0.1.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/shallow-equals-0.0.1.tgz_1486940972259_0.9578772243112326"},"directories":{},"publish_time":1486940972500,"_cnpm_publish_time":1486940972500,"_hasShrinkwrap":false},"0.0.0":{"name":"shallow-equals","description":"Determine if an array or object is equivalent with another, *not* recursively","version":"0.0.0","main":"index.js","browser":"index.js","dependencies":{},"devDependencies":{"tape":"~2.5.0"},"scripts":{},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/shallow-equals"},"bugs":{"url":"https://github.com/hughsk/shallow-equals/issues"},"homepage":"https://github.com/hughsk/shallow-equals","keywords":["shallow","equals","compare","equality","check","test"],"_id":"shallow-equals@0.0.0","dist":{"shasum":"071b29fea3d8b40ae69d9ff63fc468b0b422878b","size":2577,"noattachment":false,"key":"/shallow-equals/-/shallow-equals-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallow-equals/download/shallow-equals-0.0.0.tgz"},"_from":".","_npmVersion":"1.4.2","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{},"publish_time":1393418410202,"_cnpm_publish_time":1393418410202,"_hasShrinkwrap":false}},"readme":"# shallow-equals [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/shallow-equals&title=shallow-equals&description=hughsk/shallow-equals%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #\n\nDetermine if an array or object is equivalent with another, *not* recursively.\n\n## Usage ##\n\n[![shallow-equals](https://nodei.co/npm/shallow-equals.png?mini=true)](https://nodei.co/npm/shallow-equals)\n\n### `equals(a, b, [compare])` ###\n\nCheck if `a` and `b` are pretty much the same thing. Note this won't be the\ncase if `a` and `b` are different types (e.g. Array vs. Object, String vs.\nFunction).\n\nBy default, all comparisons between values are using the strict equality\n(`===`) operator. You can also pass in a custom `compare` function to override\nthis behavior.\n\n``` javascript\nvar equals = require('shallow-equals')\n\n// true:\nequals([1, 2, 3], [1, 2, 3])\n\n// true:\nequals({ hello: 'world' }, { hello: 'world' })\n\n// false:\nequals([1, 2, {}], [1, 2, {}])\n\n// true:\nequals([1, 2], [\n  { value: 1 },\n  { value: 2 }\n], function(a, b) {\n  return a === b.value\n})\n```\n\n## License ##\n\nMIT. See [LICENSE.md](http://github.com/hughsk/shallow-equals/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/hughsk/shallow-equals","bugs":{"url":"https://github.com/hughsk/shallow-equals/issues"},"license":"MIT"}