diff --git a/README.md b/README.md index d7400c9..e628b29 100644 --- a/README.md +++ b/README.md @@ -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)