Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
310 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = shallowEqual;
|
---|
7 |
|
---|
8 | function shallowEqual(actual, expected) {
|
---|
9 | const keys = Object.keys(expected);
|
---|
10 |
|
---|
11 | for (const key of keys) {
|
---|
12 | if (actual[key] !== expected[key]) {
|
---|
13 | return false;
|
---|
14 | }
|
---|
15 | }
|
---|
16 |
|
---|
17 | return true;
|
---|
18 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.