Function
assert < T > ( test: T , message: string ) : test is NonNullable<T>
Throws an error if the supplied test is null or undefined.
T
test
message