A switch statement might be slightly clearer, here:

```javascript
switch (idx) {
  case 0: return '4px';
  case 1: return '';
}
```