> For the complete documentation index, see [llms.txt](https://dexiejs.typogram.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexiejs.typogram.co/whereclause/whereclause.startswith.md).

# WhereClause.startsWith()

#### Syntax

```javascript
table.where(indexOrPrimKey).startsWith(prefix)
```

#### Parameters

| indexOrPrimKey: String | Name of an index or primary key registered in Version.stores() |
| ---------------------- | -------------------------------------------------------------- |
| prefix                 | Prefix to check for. Must be a string                          |

#### Return Value

Collection
