Optional Chaining and Numerical Coalescing Operator.
Opened this issue · 0 comments
JustinStoddard commented
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