Replacing switch statements with Object literalsPost navigationPrevious post: Replacing switch statements with Object literals