Skip to main content

@rbxts/expect > Assertion > oneOf

Assertion.oneOf() method

Asserts that the value is shallow equal to one of the provided values.

Signature:

oneOf<R = T>(values: R[]): Assertion<R>;

Parameters

Parameter

Type

Description

values

R[]

An array of values to check for

Returns:

Assertion<R>

Remarks

Type alias for anyOf.