Data De duplication

Time:2021-7-22
function dedupe(array) {
  return Array.from(new Set(array));
}