I have this code in javascript:
val: a ? a : ''
Basically checking that a
is not null before assinging it.
The problem is that a
is double in the line.
Is there a shorter way to do this like:
val: a ? ''
? Thanks
I have this code in javascript:
val: a ? a : ''
Basically checking that a
is not null before assinging it.
The problem is that a
is double in the line.
Is there a shorter way to do this like:
val: a ? ''
? Thanks