DEV Community

talent
talent

Posted on

Javascript Objects

Consider using a lookup map object instead of if else or even worse, a switch; when you need to check for a specific condition then get some defined proprieties on that condition!Image description

Top comments (0)