module.exports = function (hashtags)
{
var htgs = []
var repeats = []
for (let i = 0; i < hashtags.length; i++) {
const htg = hashtags[i];
if (repeats.indexOf(htg) < 0) {
htgs.push(htg);
repeats.push(htg);
}
htgs = htgs.join(',');
console.log(htgs);
module.exports = function (hashtags)
{
var htgs = []
var repeats = []
for (let i = 0; i < hashtags.length; i++) {
const htg = hashtags[i];
if (repeats.indexOf(htg) < 0) {
htgs.push(htg);
repeats.push(htg);
}
}
htgs = htgs.join(',');
console.log(htgs);
}
htgs = htgs.join(',');
console.log(htgs);
}