DEV Community

Discussion on: 1 line of code: How to merge two Arrays and clean all duplicate entries

Collapse
 
drstrangelug profile image
Paul Loveridge

The code is very efficient but I would not use it in a professional environment without a comment explaining what it does. Less experienced team members may well look at that and not understand what is doing.

It's not efficient if the developer that comes after you takes twenty minutes to figure out what the heck is going on.