JavaScript hash lookups

Being a lazy programmer, I use hash look ups all the time so my code is tinier.

var insteadOfCaseStatement = {  
 doThis: () => {},
 doThat: () => {},
 doTheOther: () => {}
};

// then using later at some point
if (insteadOfCaseStatement[someKey])  
  insteadOfCaseStatement[someKey]();
else  
  insteadOfCaseStatement.doTheOther();