Skip to content

Commit

Permalink
docs(README): add usage examples
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercejudo committed Oct 2, 2015
1 parent 9dfc727 commit 27d3ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Test every element in array against the first
```js
var everyAgainstFirst = require('every-against-first');


everyAgainstFirst([5, 7, 10], fixtures.isAscendingPair); // => true
everyAgainstFirst([5, 7, 4], fixtures.isAscendingPair); // => false
```

See more examples of [fixture callbacks](fixtures/callbacks.js).

0 comments on commit 27d3ea3

Please sign in to comment.