You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/object-functions.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,3 +57,8 @@ __Examples__
57
57
__Signature:__`$error(message)`
58
58
59
59
Deliberately throws an error with an optional `message`
60
+
61
+
## `$assert()`
62
+
__Signature:__`$assert(condition, message)`
63
+
64
+
If condition is true, the function returns undefined. If the condition is false, an exception is thrown with the message as the message of the exception.
0 commit comments