Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
Add doc for combine iterator rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Aug 13, 2012
1 parent d710f02 commit e95e2ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -50,6 +50,16 @@ gtl.filter([1, 2, 3, 4, 5], { gt: 2, lte: 4 });
// => [3, 4]
```

You also can use multiply iterator rules:

``` js
gtl.filter(
[{ one: 1, two: 5, three: 4 }, { one: 4, two: 4, three: 9 }, { one: 4, two: -2, three: 3 }, { one: 5, two: 7, three: 1 }],
{ gte: 4, or: ['one', 'two'], and: 'three' }
);
// => [{ one: 1, two: 5, three: 4 }, { one: 4, two: 4, three: 9 }]
```

### Avaliable rules

#### greaterThan (alias: gt)
Expand Down

0 comments on commit e95e2ea

Please sign in to comment.