Can the javascript shorthand for if-else return out of a function? If so how would this work. 

eg. 
I have this:

```
if(boolean){
 return;
}

```

and I would like to write it as this:

```
(value)? return;

```

Chrome complains that return is unexpected. Is there anyway to write something like this so that it is valid?