I'm trying to find the first unique string in array ignoring all other anagrams for example :

let words = ['nap', 'teachers', 'cheaters', 'pan', 'ear', 'era', 'hectares'];

output = nap teachers ear

or 
let words = ['rat', 'tar', 'art'];

output rat

I stuck here

```
let set = new Set();
let words = let words = ['nap', 'teachers', 'cheaters', 'pan', 'ear', 'era', 'hectares']

let map = new Map();
for (let word of words) {
    let sorted = word.toLowerCase().split('').sort().join(''); 
    map.set(sorted, word);
    set.add(sorted)
}
let arr = Array.from(set)

for (let inx = 0; inx < words.length; inx++) {
    arr.push('0')
}
console.log(arr);
console.log(words);

function isAnagram(s1, s2){
    return s1.split("").sort().join("") === s2.split("").sort().join("");
  }

let result = [];

  for (let i = 0; i < words.length; i++) {
       if ()
       result.push(words[i])

}
console.log(result);

```