[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / uniqueObjectsList

# Function: uniqueObjectsList()

> **uniqueObjectsList**\<`T`\>(`groupKeys`, ...`arrays`): `T`[]

Creates a unique list of objects from multiple arrays based on specified keys.

## Type Parameters

• **T** = `any`

The type of objects in the input arrays.

## Parameters

• **groupKeys**: keyof `T`[]

The keys to group by for uniqueness.

• ...**arrays**: `T`[][]

The arrays of objects to process.

## Returns

`T`[]

A unique array of objects based on the provided group keys.

## Throws

Throws an error if any of the arrays contain items without the specified keys.

## Defined in

[utils/array.util.ts:150](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/utils/array.util.ts#L150)
