```
import { strict as assert } from "assert";
import { looseCompare } from "ast-loose-compare";
assert.equal(
looseCompare(
{
a: {
b: "d",
c: [],
e: "f",
g: "h",
},
},
{
a: {
b: "d",
c: [],
},
}
),
true
);
```

```
import { strict as assert } from "assert";
import { looseCompare } from "ast-loose-compare";
assert.equal(
looseCompare(
{ a: "1", b: "2", c: "3" },
{ a: "1", b: "2" }
),
true
);
assert.equal(
looseCompare(
{ a: "1", b: "2" },
{ a: "1", b: "2", c: "3" }
),
false
);
assert.equal(
looseCompare(["a", "b", "c"], ["a", "b"]),
true
);
assert.equal(
looseCompare(["a", "b"], ["a", "b", "c"]),
false
);
assert.equal(
looseCompare("aaaaa\nbbbbb", "aaaaa\nbbbbb"),
true
);
assert.equal(looseCompare({ a: "a" }), undefined);
```

```
import { strict as assert } from "assert";
import { looseCompare } from "ast-loose-compare";
assert.equal(
looseCompare(
{
a: "a",
b: "\n \n\n",
},
{
a: "a",
b: "\t\t \t",
}
),
true
);
```