Possible to have Perl style if conditions in EcmaScript or TypeScript?

I often have this situation

let a;
if (b === 0 || c === 0) {
  a = 1;
};

where I much rather would like something like what Perl have:

const a = 1 if (b === 0 || c === 0);

Question

Can EcmaScript (any version would be fine) or TypeScript do this?