1 line of code: How to merge two Arrays and clean all duplicate entries
const mergeArrayUnique = (a, b) =&gt; [...new Set([...a, ...b])];        Enter fullscreen mode    ...
Tags: javascript, webdev, performance, codequality