18 lines
350 B
Plaintext
18 lines
350 B
Plaintext
"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;
|
|
}
|
|
|
|
//# sourceMappingURL=shallowEqual.js.map
|