const long = ['saturday', 'sunday']; const short = ['sat', 'sun']; const weekends = key => ({long, short}[key])