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

***

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

# Function: uniqueItems()

> **uniqueItems**\<`T`\>(...`arrays`): `T`[]

Returns an array of unique items across all provided arrays, removing only `null` and `undefined` values.

## Type Parameters

• **T** = `any`

The type of elements in the arrays.

## Parameters

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

Arrays of items to be merged and deduplicated.

## Returns

`T`[]

- A deduplicated array of unique items, excluding only `null` and `undefined`.

## Example

```ts
// returns [0, 1, 2, false, NaN, ""]
uniqueItemsFilterNullish([0, 1, 2], [null, undefined, false, NaN, ""]);
```

## Defined in

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