Skip to content

Optional chaining support? #30

@dead-claudia

Description

@dead-claudia

I'm thinking this, to align it fully with object methods.

  • receiver?~>fn(): receiver == null ? undefined : fn.call(receiver)
  • receiver~>fn?.(): typeof fn !== "function" ? undefined : fn.call(receiver)
  • receiver?~>fn?.(): receiver == null || typeof fn !== "function" ? undefined : fn.call(receiver)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions