@glideapps/ts-necessities
Preparing search index...
assert
Function assert
assert
(
fact
:
boolean
,
message
?:
string
)
:
asserts
fact
Assert that
fact
is
true
. If the assertion fails, [[panic]] with
message
.
Parameters
fact
:
boolean
message
:
string
= "Assertion failed"
Returns
asserts
fact
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@glideapps/ts-necessities
Loading...
Assert that
fact
istrue
. If the assertion fails, [[panic]] withmessage
.