Skip to content

Commit

Permalink
docs: update readme to use esm (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j authored Oct 28, 2024
1 parent 8c14040 commit 2dae026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ As an example, take the following:
{ a: 1 } !== { a: 1 } // These are two different objects, they hold different references and so are not strictly equal - even though they hold the same values inside
{ a: 1 } != { a: 1 } // They have the same type, meaning loose equality performs the same check as strict equality - they are still not equal.

var deepEql = require("deep-eql");
import deepEql from "deep-eql";
deepEql({ a: 1 }, { a: 1 }) === true // deepEql can determine that they share the same keys and those keys share the same values, therefore they are deeply equal!
```

Expand Down

0 comments on commit 2dae026

Please sign in to comment.