As a general practice i try to avoid ternaries for better clarity, readability and code simplicity...

```js
if (x) {
  variable = x;
} else {
  variable = y;
}
```