Skip to content

[Discussion] Figure out if PropertyAccessExpressions on undefined properties inside expressions should throw like they do now #12

@wessberg

Description

@wessberg

Currently users have to continuously type foo == null ? "" : foo.bar to handle conditional existence of props.

Looking for inspiration, Angular tackles this with the Elvis operator: foo?.bar.

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