Filter docs

This commit is contained in:
sharpshark28 2017-08-17 18:21:06 -05:00
parent a10ac23e1a
commit 82e9f5ed5b

View file

@ -32,6 +32,20 @@ Currently supports booleans and strings. (See [#1](https://github.com/sharpshark
.search('name', 'steele')
```
#### Filter
Simpler version of search using a custom function in the chain.
```javascript
.filter(a => a.age >= 21)
```
##### By Key
```javascript
.filterBy('age', x => x >= 21)
```
#### Sort
Currently supports booleans and strings. (See [#1](https://github.com/sharpshark28/json-query-chain/issues/2) for Integer Support)