JSFiddle - React, Tailwind, and code Playground

by sabbin

JavaScript

const arr = [
  ['a', 'b'],
  ['c', 'd'],
  ['d', 'a']
];

let x = new Set();

arr.forEach(element => {
  console.log(element);
  x.add(element);
})

console.log(x);