vendredi 8 avril 2016

Common coding pattern: ternary operator?

Currently I'm using:

input = input ? input : 'splash';

which I know is too verbose.

What is the shorter way to do this?

Aucun commentaire:

Enregistrer un commentaire