Skip to content

Commit

Permalink
docs: add require statement to the README example (#36)
Browse files Browse the repository at this point in the history
* Add require statement to the README.md

* typo fix
  • Loading branch information
erikvold authored and keithamus committed Mar 7, 2017
1 parent 145dd26 commit ff1b5da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -79,6 +79,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");
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 ff1b5da

Please sign in to comment.