using a javascript minifier [here](https://javascript-minifier.com/), if found 

```
if ($(this).val()) {
    idCat = $(this).val();
}

```

gets transformed into this expression

```
$(this).val()&&(idCat=$(this).val());

```

What is the rationale behind this tranformation?