REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.24 KB
Close
/home/byroehnu/.trash/node_modules11/shallowequal/README.md
Text
Base64
# shallowequal [](https://travis-ci.org/dashed/shallowequal) [](https://npmjs.com/shallowequal) [](https://www.npmjs.com/package/shallowequal) [](https://greenkeeper.io/) > `shallowequal` is like lodash's [`isEqualWith`](https://lodash.com/docs/4.17.4#isEqualWith) but for shallow (strict) equal. `shallowequal(value, other, [customizer], [thisArg])` Performs a ***shallow equality*** comparison between two values (i.e. `value` and `other`) to determine if they are equivalent. The 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. If `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. The `customizer` is bound to `thisArg` and invoked with three arguments: `(value, other, key)`. **NOTE:** Docs are (shamelessly) adapted from [lodash's v3.x docs](https://lodash.com/docs/3.10.1#isEqualWith) ## Install ```sh $ yarn add shallowequal # npm v5+ $ npm install shallowequal # before npm v5 $ npm install --save shallowequal ``` ## Usage ```js const shallowequal = require('shallowequal'); const object = { 'user': 'fred' }; const other = { 'user': 'fred' }; object == other; // → false shallowequal(object, other); // → true ``` ## Credit Code 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`). ## Development - `node.js` and `npm`. See: https://github.com/creationix/nvm#installation - `yarn`. See: https://yarnpkg.com/en/docs/install - `npm` dependencies. Run: `yarn install` ### Chores - Lint: `yarn lint` - Test: `yarn test` - Pretty: `yarn pretty` - Pre-publish: `yarn prepublish` ## License MIT.
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
979 B
lrw-r--r--
2026-02-28 00:26:42
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js.flow
185 B
lrw-r--r--
2026-02-28 00:26:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.original.js
1.07 KB
lrw-r--r--
2026-02-28 00:27:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.09 KB
lrw-r--r--
2026-02-28 00:27:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.64 KB
lrw-r--r--
2026-02-28 00:26:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
2.24 KB
lrw-r--r--
2026-02-28 00:27:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).