# shallowequal **Repository Path**: mirrors_fis-components/shallowequal ## Basic Information - **Project Name**: shallowequal - **Description**: Fork from https://github.com/dashed/shallowequal.git - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # shallowequal [![Build Status](https://travis-ci.org/Dashed/shallowequal.svg)](https://travis-ci.org/Dashed/shallowequal) > `shallowequal` is like lodash's `isEqual` but for shallow (strict) equal. `shallowequal(value, other, [customizer], [thisArg])` Performs equality by iterating through keys on a `value` and returning `false` when any key has values which are not strictly equal between `value` and `other`. Returns `true` when the values of all keys are strictly equal. If `customizer` 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 is (shamelessly) adapted from [lodash's docs](https://lodash.com/docs#isEqual) ## Usage ``` $ npm install --save shallowequal ``` ```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.isEqual`. ## License MIT