I made this code
function reestructurar(dir,fileA){
var seto = new Set([]);
read('${dir}/training/${fileA}', contentT => {
for (var i = 0, chunki = contentT.split('\r\n'), leni =chunki.length; i < leni; i++){
if(seto.get(chunki)=="") { //error
seto.add(chunki);
}
}
console.log(seto);
});
}
marks me error in the function get()
I'm using this lib link