Skip to content

Commit 98b1620

Browse files
authored
Update Collection.filter().md
1 parent ed8133b commit 98b1620

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/Collection/Collection.filter().md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ This method is identical to [Collection.and()](/docs/Collection/Collection.and()
2626
### Sample
2727

2828
```javascript
29-
db.friends.orderBy('age').filter(function (friend) {
30-
return friend.name === "Foo";
31-
});
29+
db.friends
30+
.orderBy('age')
31+
.filter((friend) => /Foo/i.test(friend.name))
32+
.offset(50)
33+
.limit(25)
34+
.toArray()
3235
```

0 commit comments

Comments
 (0)