isDefAndNotNulltsfunction isDefAndNotNull<F>(val): val is F Returns true if the specified value is defined and not null. Type parameters Type parameterF Parameters ParameterTypeDescriptionvalundefined | null | FVariable to test. Returns val is F Whether variable is defined and not null.