Optional chaining: repeating call to object method

node v10.18.0
version: 1.0.0
endpointsharetweet
const babel = require("@babel/core"); const {code} = babel.transform( `a.get(b)?.();`, { plugins: [[require('@babel/plugin-proposal-optional-chaining'), {loose: true}]] } ); console.log(code);
Loading…

no comments

    sign in to comment