With the latest release (v20250820):
window.f = x => x ? true : false;
gets transformed into
window.f=a=>a?!0:!1;
A shorter (and to my knowledge, equivalent) expression would be:
window.f=a=>!!a;
Similarly,
window.f = x => x ? false : true;
should be transformed into
window.f=a=>!a;