How to create a Set from Array and remove original items in JavaScript

Published --