Skip to content

undefined instead of null #1

Description

@langsamu

I recommend using undefined instead of null here and everywhere else in the mapping classes. Just because that's what they are everywhere else.

get region(): string | null {
return this.singularNullable(VCARD.region, ValueMapping.literalToString) ?? null;

To be clear, I don't think that null is wrong. I'm just trying to keep everything as similar as possible. But if you have any compelling reason that do keep it.

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