Optional chaining: repeating call to object method

node v10.24.1
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