mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 05:09:30 +08:00
18 lines
No EOL
310 B
Text
18 lines
No EOL
310 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = shallowEqual;
|
|
|
|
function shallowEqual(actual, expected) {
|
|
const keys = Object.keys(expected);
|
|
|
|
for (const key of keys) {
|
|
if (actual[key] !== expected[key]) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
return true;
|
|
} |