Skip to content

Commit b3c3ded

Browse files
committed
docs: add rule about inherited properties
1 parent 617b392 commit b3c3ded

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ The primary export of `deep-eql` is function that can be given two objects to co
9999
- Strict equality for non-traversable nodes according to [`Object.is`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
100100
- `eql(NaN, NaN).should.be.true;`
101101
- `eql(-0, +0).should.be.false;`
102+
- All own and inherited enumerable properties are considered:
103+
- `eql(Object.create({ foo: { a: 1 } }), Object.create({ foo: { a: 1 } })).should.be.true;`
104+
- `eql(Object.create({ foo: { a: 1 } }), Object.create({ foo: { a: 2 } })).should.be.false;`
102105
- Arguments are not Arrays:
103106
- `eql([], arguments).should.be.false;`
104107
- `eql([], Array.prototype.slice.call(arguments)).should.be.true;`

0 commit comments

Comments
 (0)