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

***

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

# Function: recursiveFlattenArray()

> **recursiveFlattenArray**\<`T`\>(`array`, `properties`): `T`[]

Recursively flattens an array of objects based on the specified properties.

## Type Parameters

• **T** = `any`

The type of the elements in the array.

## Parameters

• **array**: `T`[]

The array to flatten.

• **properties**: `string`[]

The properties to flatten the array based on.

## Returns

`T`[]

- The flattened array.

## Defined in

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