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

***

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

# Function: isInEnum()

> **isInEnum**(`enumType`, `value`): `boolean`

Checks if a value is a valid member of an enum.

## Parameters

• **enumType**: [`Enum`](../type-aliases/Enum.md)

The enum to check against.

• **value**: `string` \| `number`

The value to check.

## Returns

`boolean`

True if the value is a valid member of the enum, false otherwise.

## Defined in

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