Use an Object Literal, Better than Using Conditional Statements in JavaScript
Conditional Statements (If-Else, Switch) can be easily replaced with Object Literals. They make the...
Tags: javascript, node, es6, react