Skip to content

Documentation / base / ASSERT

Function: ASSERT()

ASSERT(condition, message?): asserts condition

Defined in: libs/base/src/utils.ts:506

Simple assertion which throws an error if the !!condition is false.

Parameters

condition

boolean

The condition to check.

message?

string

Returns

asserts condition

Released under the MIT License.