Skip to main content

@rbxts/expect > Assertion > number

Assertion.number() method

Asserts that the value is a number.

Signature:

number(): Assertion<number>;

Returns:

Assertion<number>

Remarks

Just a wrapper around , but with the number type provided automatically.

Example

expect(1).to.be.a.number();