Filter docs
This commit is contained in:
parent
a10ac23e1a
commit
82e9f5ed5b
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -32,6 +32,20 @@ Currently supports booleans and strings. (See [#1](https://github.com/sharpshark
|
||||||
.search('name', 'steele')
|
.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
|
#### Sort
|
||||||
|
|
||||||
Currently supports booleans and strings. (See [#1](https://github.com/sharpshark28/json-query-chain/issues/2) for Integer Support)
|
Currently supports booleans and strings. (See [#1](https://github.com/sharpshark28/json-query-chain/issues/2) for Integer Support)
|
||||||
|
|
Loading…
Add table
Reference in a new issue