Update replace-switch-with-object-literal.md

Added basic example and more information section.