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