The following statement works fine but jshint doesn't accept it.
My question is "Will this syntax still be valid in the future of javascript ?".
If it is not a matter of concern, how to configure jshint to ignore it ?
function(a){
return (a === 'y'|'x'|'z') ? a : 'x';
// return a if its value is x, y or z, default it to x otherwise
}
-- UPDATE --
!! Please Ignore this !! Actually this was not working fine. Your are not supposed to use bitwise operator on string except for very specific case and when you know what you are doing :p