Skip to content

Commit

Permalink
Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Apr 2, 2018
1 parent 71a334e commit de0dcd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ store.batch(data, 'set').then(function () {
```

**where(predicate)**
_Mixed_
_Array_

Performs a `find()` on the first key of `predicate`, and then a `filter()` on the remaining keys via a generated `Function`.

Expand All @@ -1025,7 +1025,7 @@ const store = haro(null, {key: 'guid', index: ['name']}),
data = [{guid: 'abc', name: 'John Doe', age: 30}, {guid: 'def', name: 'Jane Doe', age: 28}];

store.batch(data, 'set').then(function () {
console.log(store.where({name: 'John Doe', age: 30}); // [{guid: 'abc', name: 'John Doe', age: 30}]
console.log(store.where({name: 'John Doe', age: 30})); // [{guid: 'abc', name: 'John Doe', age: 30}]
}, function (e) {
console.error(e.stack || e.message || e);
});
Expand Down

0 comments on commit de0dcd6

Please sign in to comment.