Open History to see the last commit
1---
2id: length
3title: length
4---
5
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7
8# Function: length()
9
10```ts
11function length(arg): BasicExpression<number>
12```
13
14Defined in: [packages/db/src/query/builder/functions.ts:178](https://github.com/TanStack/db/blob/main/packages/db/src/query/builder/functions.ts#L178)
15
16## Parameters
17
18### arg
19
20`string` | `any`[] | `RefProxy`\<`string`\> | `RefProxy`\<`undefined` \| `string`\> | `BasicExpression`\<`string`\> | `RefProxy`\<`any`[]\> | `RefProxy`\<`undefined` \| `any`[]\> | `BasicExpression`\<`any`[]\>
21
22## Returns
23
24`BasicExpression`\<`number`\>