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

***

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

# Function: validateQuantitiesOverlap()

> **validateQuantitiesOverlap**\<`T`\>(`objects`, `exitOnFirst`): `T`[]

Validates if the quantities of objects overlap.

## Type Parameters

• **T** *extends* `HasQuantities`

## Parameters

• **objects**: `T`[]

An array of objects that have quantities.

• **exitOnFirst**: `boolean` = `false`

A boolean indicating whether to exit on the first error.

## Returns

`T`[]

A boolean indicating if the quantities overlap or not.

## Defined in

[validations/pricing/quantity.validations.ts:24](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/validations/pricing/quantity.validations.ts#L24)
