toBeArray

Bun

Symbol

Matchers.toBeArray

toBeArray(): void

Asserts that a value is a array.

expect([1]).toBeArray();
expect(new Array(1)).toBeArray();
expect({}).not.toBeArray();