Skip to main content

@rbxts/expect > Assertion > includes

Assertion.includes() method

Asserts that the expectedValue is a value in the array.

Signature:

includes(expectedValue: InferArrayElement<T>): this;

Parameters

Parameter

Type

Description

expectedValue

InferArrayElement<T>

Returns:

this

Remarks

Type alias for include.