ericclemmons / ericclemmons/grunt-react
Optional Chaining and Numerical Coalescing Operator.
Open
- Dominant language
- JavaScript
- Stars
- 150
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
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
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.