Skip to main content

@rbxts/expect > Assertion > array

Assertion.array() method

Asserts that the value is an array of type I, according to a provided t check.

Signature:

array<I>(tChecker: t.check<I>): Assertion<I[]>;

Parameters

Parameter

Type

Description

tChecker

t.check<I>

Returns:

Assertion<I[]>

Example

expect([1,2,3]).to.be.an.array(t.number);