Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let alreadyUsedKeywords: string[] = getUsedWords(value, othersFields.join(' '));
  2.     const words: string[] = value.replace(/,/g, ' ').split(' ').map(i => i.toLowerCase().trim());
  3.     alreadyUsedKeywords.push(words.filter((item, index) => words.indexOf(item) != index));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement