DEV Community

J E E N A R J U N
J E E N A R J U N

Posted on

How to avoid repeating the same function to allow modifier keys on click on the link?

I want the users have the option to do cmd+click on the name and role, so that the page related to it opens up in a new tab.

Following code is how I am handling it right now. I want a better solution of writing this code → instead of…

Top comments (0)