HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sceutre

no profile record

comments

sceutre
·7 yıl önce·discuss
The latter. You can look at what javascript is emitted on the playground.

  let bar: any, log: any;
  log?.(`foo ${bar()}`);
  
  // becomes
  var _a;
  var bar, log;
  (_a = log) === null || _a === void 0 ? void 0 : _a("foo " + bar());