Skip to content

Add an "argument is not type" operator #16812

Description

@Arlen22

We already have:

functionisNotUndefined(obj:any): obj is string|number|boolean|MyCustomType|null|MyOtherCustomType{returntypeofobj!=="undefined";}

Now we just need:

functionisNotUndefined(obj:any): obj is notundefined{// or isnotreturntypeofobj!=="undefined";}

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions