|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
528 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | function isEqualLocals(a, b, isNamedExport) {
|
|---|
| 4 | if (!a && b || a && !b) {
|
|---|
| 5 | return false;
|
|---|
| 6 | }
|
|---|
| 7 | var p;
|
|---|
| 8 | for (p in a) {
|
|---|
| 9 | if (isNamedExport && p === "default") {
|
|---|
| 10 | // eslint-disable-next-line no-continue
|
|---|
| 11 | continue;
|
|---|
| 12 | }
|
|---|
| 13 | if (a[p] !== b[p]) {
|
|---|
| 14 | return false;
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
| 17 | for (p in b) {
|
|---|
| 18 | if (isNamedExport && p === "default") {
|
|---|
| 19 | // eslint-disable-next-line no-continue
|
|---|
| 20 | continue;
|
|---|
| 21 | }
|
|---|
| 22 | if (!a[p]) {
|
|---|
| 23 | return false;
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
| 26 | return true;
|
|---|
| 27 | }
|
|---|
| 28 | module.exports = isEqualLocals; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.