Skip to content

Optional Chaining and Numerical Coalescing Operator.  #59

@JustinStoddard

Description

@JustinStoddard

Hello! I love using this library and would also love if you could support the New ES11 Optional Chaining and the Numerical Coalescing Operator.

Optional Chaining:

const myObj = {
  foo: {
    bar: "hello"
  }
};
console.log(myObj.foo?.baz);
//This allows me to still use a deeply nested variable in an object without returning undefined.

Numerical Coalescing Operator:

const foo = undefined;
const bar = foo ?? "hey";
//By using the Numerical Coalescing Operator I can return bar as the string if foo is undefined or null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions