{"_id":"shallowequal","_rev":"210194","name":"shallowequal","description":"Like lodash isEqualWith but for shallow equal.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"dashed","email":""}],"time":{"modified":"2021-06-03T15:28:22.000Z","created":"2015-06-12T14:01:17.961Z","1.1.0":"2018-06-23T22:33:33.740Z","1.0.2":"2017-07-10T01:41:44.999Z","1.0.1":"2017-05-23T17:44:33.543Z","1.0.0":"2017-05-22T20:15:48.961Z","0.2.2":"2015-08-17T19:23:56.413Z","0.2.1":"2015-06-20T11:40:36.989Z","0.2.0":"2015-06-12T15:37:20.833Z","0.1.0":"2015-06-12T14:01:17.961Z"},"users":{"vasz":true,"agamlarage":true,"hsiang":true,"scronide":true,"wangdao":true,"zoxon":true,"arcticicestudio":true},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"versions":{"1.1.0":{"name":"shallowequal","version":"1.1.0","description":"Like lodash isEqualWith but for shallow equal.","main":"index.js","scripts":{"lint":"eslint index.js test","test":"mocha --require babel-register","build:strip-flow":"flow-remove-types --pretty index.original.js > index.js","build:gen-flow":"flow gen-flow-files index.original.js > index.js.flow","build":"npm run build:strip-flow && npm run build:gen-flow","prepublish":"npm run build && npm run pretty && npm run lint && npm run test","travis":"npm run lint && npm run test","pretty":"prettier --write --tab-width 2 'test/**/*.js' '*.{js,js.flow}'","precommit":"lint-staged"},"lint-staged":{"*.{js,json,css,js.flow}":["prettier --write","git add"]},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["index.js","index.js.flow","index.original.js"],"keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"devDependencies":{"babel-eslint":"^8.0.0","babel-preset-env":"^1.6.1","babel-register":"^6.24.1","chai":"^4.0.0","eslint":"^4.7.1","flow-bin":"^0.75.0","flow-remove-types":"^1.2.3","husky":"^0.14.3","lint-staged":"^6.0.0","mocha":"^5.0.0","prettier":"^1.9.2"},"gitHead":"eed683ef572ec0dd92b6e7345219569465dc8b98","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"9.2.0","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"188d521de95b9087404fd4dcb68b13df0ae4e7f8","size":3060,"noattachment":false,"key":"/shallowequal/-/shallowequal-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-1.1.0.tgz"},"maintainers":[{"name":"dashed","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal_1.1.0_1529793213683_0.9610285271965462"},"_hasShrinkwrap":false,"publish_time":1529793213740,"_cnpm_publish_time":1529793213740},"1.0.2":{"name":"shallowequal","version":"1.0.2","description":"Like lodash isEqualWith but for shallow equal.","main":"index.js","scripts":{"lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test","travis":"npm run lint && npm run test"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["index.js"],"keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"devDependencies":{"babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1","chai":"^4.0.0","eslint":"^3.19.0","mocha":"^3.4.1"},"gitHead":"6a8683c9e76acd2981c0c682239f385c1abee68d","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@1.0.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"1561dbdefb8c01408100319085764da3fcf83f8f","size":2632,"noattachment":false,"key":"/shallowequal/-/shallowequal-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-1.0.2.tgz"},"maintainers":[{"name":"dashed","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal-1.0.2.tgz_1499650904923_0.30262987152673304"},"directories":{},"publish_time":1499650904999,"_cnpm_publish_time":1499650904999,"_hasShrinkwrap":false},"1.0.1":{"name":"shallowequal","version":"1.0.1","description":"Like lodash isEqualWith but for shallow equal.","main":"index.js","scripts":{"lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test","travis":"npm run lint && npm run test"},"babel":{"presets":["es2015"]},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["index.js"],"keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"devDependencies":{"babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1","chai":"^3.5.0","eslint":"^3.19.0","mocha":"^3.4.1"},"gitHead":"4d94f50cbb61837827e7edaeb6262fcd8a7eede6","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@1.0.1","_shasum":"4349160418200bad3b82d723ded65f2354db2a23","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"4349160418200bad3b82d723ded65f2354db2a23","size":2615,"noattachment":false,"key":"/shallowequal/-/shallowequal-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-1.0.1.tgz"},"maintainers":[{"name":"dashed","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal-1.0.1.tgz_1495561473381_0.7039488395676017"},"directories":{},"publish_time":1495561473543,"_hasShrinkwrap":false,"_cnpm_publish_time":1495561473543},"1.0.0":{"name":"shallowequal","version":"1.0.0","description":"Like lodash isEqualWith but for shallow equal.","main":"index.js","scripts":{"lint":"eslint src test","test":"mocha --compilers js:babel-register","prepublish":"npm run lint && npm run test","travis":"npm run lint && npm run test"},"babel":{"presets":["es2015"]},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["index.js"],"keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"eslintConfig":{"parser":"babel-eslint","env":{"browser":true,"node":true,"mocha":true},"extends":["eslint:recommended"]},"devDependencies":{"babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1","chai":"^3.5.0","eslint":"^3.19.0","mocha":"^3.4.1"},"gitHead":"5fb7245d581e967649dd89c82447aedc11fa63b2","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@1.0.0","_shasum":"30d2fd9c7df7ec45c1ff29f7dd438bbd23217127","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"30d2fd9c7df7ec45c1ff29f7dd438bbd23217127","size":2603,"noattachment":false,"key":"/shallowequal/-/shallowequal-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-1.0.0.tgz"},"maintainers":[{"name":"dashed","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal-1.0.0.tgz_1495484148854_0.627249519340694"},"directories":{},"publish_time":1495484148961,"_cnpm_publish_time":1495484148961,"_hasShrinkwrap":false},"0.2.2":{"name":"shallowequal","version":"0.2.2","description":"Like lodash isEqual but for shallow equal","main":"modules/index.js","scripts":{"test":"mocha --compilers js:babel/register","build":"./scripts/build.sh","prepublish":"npm run build"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/Dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["modules"],"keywords":["shallowequal","shallow","equal","isequal","compare"],"devDependencies":{"babel":"^5.8.21","chai":"^3.2.0","lodash":"^3.10.1","mocha":"^2.2.5"},"dependencies":{"lodash.keys":"^3.1.2"},"gitHead":"d63d2faf85260852fb32c47db1c7c01d630d5569","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@0.2.2","_shasum":"1e32fd5bcab6ad688a4812cb0cc04efc75c7014e","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"1e32fd5bcab6ad688a4812cb0cc04efc75c7014e","size":1665,"noattachment":false,"key":"/shallowequal/-/shallowequal-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-0.2.2.tgz"},"maintainers":[{"name":"dashed","email":""}],"directories":{},"publish_time":1439839436413,"_cnpm_publish_time":1439839436413,"_hasShrinkwrap":false},"0.2.1":{"name":"shallowequal","version":"0.2.1","description":"Like lodash isEqual but for shallow equal","main":"modules/index.js","scripts":{"test":"mocha --compilers js:babel/register","build":"./scripts/build.sh","prepublish":"npm run build"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/Dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["modules"],"keywords":["shallowequal","shallow","equal","isequal","compare"],"devDependencies":{"babel":"^5.5.6"},"dependencies":{"lodash.keys":"^3.1.1"},"gitHead":"5defa767c104fab802f507c62e3519840c0ca1a1","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@0.2.1","_shasum":"10367cdee0b140a7fdabb2cb2c9942569a169627","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.2","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"10367cdee0b140a7fdabb2cb2c9942569a169627","size":1473,"noattachment":false,"key":"/shallowequal/-/shallowequal-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-0.2.1.tgz"},"maintainers":[{"name":"dashed","email":""}],"directories":{},"publish_time":1434800436989,"_cnpm_publish_time":1434800436989,"_hasShrinkwrap":false},"0.2.0":{"name":"shallowequal","version":"0.2.0","description":"Like lodash isEqual but for shallow equal","main":"modules/index.js","scripts":{"test":"mocha --compilers js:babel/register","build":"./scripts/build.sh","prepublish":"npm run build"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/Dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["modules"],"keywords":["shallowequal","shallow","equal","isequal","compare"],"devDependencies":{"babel":"^5.5.6"},"dependencies":{"lodash.keys":"^3.1.1"},"gitHead":"1edce45fbd6e166f0f8e66d9a4fd03207f4652da","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@0.2.0","_shasum":"24b83b53ad14deb48bccdd80ab08abb98e6fc324","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.2","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"24b83b53ad14deb48bccdd80ab08abb98e6fc324","size":2109,"noattachment":false,"key":"/shallowequal/-/shallowequal-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-0.2.0.tgz"},"maintainers":[{"name":"dashed","email":""}],"directories":{},"publish_time":1434123440833,"_cnpm_publish_time":1434123440833,"_hasShrinkwrap":false},"0.1.0":{"name":"shallowequal","version":"0.1.0","description":"Like lodash isEqual but for shallow equal","main":"modules/index.js","scripts":{"test":"mocha --compilers js:babel/register","build":"./scripts/build.sh","prepublish":"npm run build"},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/Dashed"},"repository":{"type":"git","url":"git+https://github.com/dashed/shallowequal.git"},"license":"MIT","files":["modules"],"keywords":["shallowequal","shallow","equal","isequal","compare"],"devDependencies":{"babel":"^5.5.6"},"dependencies":{"lodash.keys":"^3.1.1"},"gitHead":"f49b92b56af11e9ee39736303d7e2587e6062b83","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"homepage":"https://github.com/dashed/shallowequal#readme","_id":"shallowequal@0.1.0","_shasum":"a5de5e7508797c956564dae934195e78c7f99421","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.2","_npmUser":{"name":"dashed","email":"mailforalberto@gmail.com"},"dist":{"shasum":"a5de5e7508797c956564dae934195e78c7f99421","size":2007,"noattachment":false,"key":"/shallowequal/-/shallowequal-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/shallowequal/download/shallowequal-0.1.0.tgz"},"maintainers":[{"name":"dashed","email":""}],"directories":{},"publish_time":1434117677961,"_cnpm_publish_time":1434117677961,"_hasShrinkwrap":false}},"readme":"# shallowequal [![Build Status](https://travis-ci.org/dashed/shallowequal.svg)](https://travis-ci.org/dashed/shallowequal) [![Downloads](https://img.shields.io/npm/dm/shallowequal.svg)](https://npmjs.com/shallowequal) [![npm version](https://img.shields.io/npm/v/shallowequal.svg?style=flat)](https://www.npmjs.com/package/shallowequal)\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/dashed/shallowequal.svg)](https://greenkeeper.io/)\n\n> `shallowequal` is like lodash's [`isEqualWith`](https://lodash.com/docs/4.17.4#isEqualWith) but for shallow (strict) equal.\n\n`shallowequal(value, other, [customizer], [thisArg])`\n\nPerforms a ***shallow equality*** comparison between two values (i.e. `value` and `other`) to determine if they are equivalent.\n\nThe equality is performed by iterating through keys on the given `value`, and returning `false` whenever any key has values which are not **strictly equal** between `value` and `other`. Otherwise, return `true` whenever the values of all keys are strictly equal.\n\nIf `customizer` (expected to be a function) is provided it is invoked to compare values. If `customizer` returns `undefined` (i.e. `void 0`), then comparisons are handled by the `shallowequal` function instead.\n\nThe `customizer` is bound to `thisArg` and invoked with three arguments: `(value, other, key)`.\n\n**NOTE:** Docs are (shamelessly) adapted from [lodash's v3.x docs](https://lodash.com/docs/3.10.1#isEqualWith)\n\n## Install\n\n```sh\n$ yarn add shallowequal\n# npm v5+\n$ npm install shallowequal\n# before npm v5\n$ npm install --save shallowequal\n```\n\n## Usage\n\n```js\nconst shallowequal = require('shallowequal');\n\nconst object = { 'user': 'fred' };\nconst other = { 'user': 'fred' };\n\nobject == other;\n// → false\n\nshallowequal(object, other);\n// → true\n```\n\n## Credit\n\nCode for `shallowEqual` originated from https://github.com/gaearon/react-pure-render/ and has since been refactored to have the exact same API as `lodash.isEqualWith` (as of `v4.17.4`).\n\n## Development\n\n- `node.js` and `npm`. See: https://github.com/creationix/nvm#installation\n- `yarn`. See: https://yarnpkg.com/en/docs/install\n- `npm` dependencies. Run: `yarn install`\n\n### Chores\n\n- Lint: `yarn lint`\n- Test: `yarn test`\n- Pretty: `yarn pretty`\n- Pre-publish: `yarn prepublish`\n\n## License\n\nMIT.\n","_attachments":{},"homepage":"https://github.com/dashed/shallowequal#readme","bugs":{"url":"https://github.com/dashed/shallowequal/issues"},"license":"MIT"}