Dexie Logo
CtrlK

Collection.filter()

Syntax

collection.filter(filter)

Parameters

filter: Functionfunction (value) { return true/false; }

Return Value

This Collection instance (this)

Remarks

This method is identical to Collection.and()

Sample

const collection = db.friends
  .orderBy('age')
  .filter((friend) => /foo/i.test(friend.name));
  
const result = await collection.offset(50).limit(25).toArray();

© 2014-2025 Awarica AB

Browser testing via

TestMu AI (Formerly LambdaTest)

Made with love for great people.

Read Terms & Conditions and Privacy Policy.

We recently launched a new website! Missing something? Visit the old site. Your feedback is welcome!