Permalink
Browse files

Clarified all `empty` functionality in README example.

1 parent 7109b68 commit e0de582db9067263d5e31966e3906e75d2702df7 @rauchg rauchg committed Feb 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
View
@@ -108,6 +108,9 @@ expect([1,2,3]).to.have.length(3);
```js
expect([]).to.be.empty();
+expect({}).to.be.empty();
+expect({ length: 0, duck: 'typing' }).to.be.empty();
+expect({ my: 'object' }).to.not.be.empty();
expect([1,2,3]).to.not.be.empty();
```

0 comments on commit e0de582

Please sign in to comment.