[**realue**](../README.md) • **Docs**

***

[realue](../README.md) / itemIdDefault

# Function: itemIdDefault()

> **itemIdDefault**\<`T`\>(`index`, `item`): `string`

Default function used by `useArray` for defining the unique identifier of an item.

## Type Parameters

• **T**

## Parameters

• **index**: `number`

Array index of the item.

• **item**: `T`

Value of the item.

## Returns

`string`

A unique identifier string for this item.

## Defined in

[lib/tools/itemIdDefault.ts:8](https://github.com/nevoland/realue/blob/10b81dd410f087c06fbf8ea8b1c227058ff70751/lib/tools/itemIdDefault.ts#L8)
