Skip to content

Use with nullish coalescing operator #13

@Eli-Black-Work

Description

@Eli-Black-Work

I have an additional example of where I think this feature would be useful: In conjunction with the nullish coalescing operator.

For example:

const car = cars[carType] ?? throw "Car type mayn't be null";

Would this be worth adding to the list of examples? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions