Optional chaining: repeating call to object method
const babel = require("@babel/core");
const {code} = babel.transform(
`a.get(b)?.();`,
{
plugins: [[require('@babel/plugin-proposal-optional-chaining'), {loose: true}]]
}
);
console.log(code);
no comments