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

***

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

# Function: recursiveFlattenObject()

> **recursiveFlattenObject**\<`T`\>(`entity`, `properties`): `T`[]

Recursively flattens an object by extracting specified properties.

## Type Parameters

• **T** = `any`

The type of the object being flattened.

## Parameters

• **entity**: `T`

The object to be flattened.

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

The properties to be extracted from the object.

## Returns

`T`[]

An array of flattened objects.

## Defined in

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