mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 01:26:48 +03:00
linting
This commit is contained in:
parent
37a8fc190f
commit
1ec3c01d5d
|
@ -1,11 +1,11 @@
|
|||
const deepEqual = function (x, y) {
|
||||
if ((typeof x == "object" && x != null) && (typeof y == "object" && y != null)) {
|
||||
if (Object.keys(x).length != Object.keys(y).length) {
|
||||
function deepEqual(x, y) {
|
||||
if ((typeof x === 'object' && x !== null) && (typeof y === 'object' && y !== null)) {
|
||||
if (Object.keys(x).length !== Object.keys(y).length) {
|
||||
return false;
|
||||
}
|
||||
for (var prop in x) {
|
||||
for (let prop in x) {
|
||||
if (y.hasOwnProperty(prop)) {
|
||||
if (! deepEqual(x[prop], y[prop])) {
|
||||
if (!deepEqual(x[prop], y[prop])) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
@ -13,7 +13,7 @@ const deepEqual = function (x, y) {
|
|||
}
|
||||
}
|
||||
return true;
|
||||
} else if (x !== y){
|
||||
} else if (x !== y) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user