Skip to content

Replace deepAccess with optional chaining #12543

@gwhigs

Description

@gwhigs

Type of issue

Question

Description

I see mixed use of both optional chaining (obj?.prop1?.prop2) and the deepAccess function in Prebid.js.

Is optional chaining preferred? If so, would a PR replacing some usage of deepAccess be appropriate?

I have a list of such patches for certain modules and would like to submit them. However, my internal build target includes native support for optional chaining. I'm unsure whether this is the case more generally.

Replacing deepAccess entirely — if desirable — would be a larger effort considering how deeply integrated some usages are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Ready for Dev

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions