Asserts that the given value is not undefined. Note that null is considered to be a defined value.
null
Example:
assertDefined(someVar); Copy
assertDefined(someVar);
The value to check.
Optional
Optional reason added to exception message when assertion fails.
AssertionError when value is undefined.
Asserts that the given value is not undefined. Note that
null
is considered to be a defined value.Example: