Hi, I was wondering if anyone could offer any advice on the fastest / most efficient way to compose two string arrays in javascript.
I am developing a type of cloud type tag based on user input - input in the form of a written piece of text, such as a blog article or the like.
Therefore, I have an array in which I save the words so as not to include - is, a, etc, etc.
I am currently doing the following:
Remove all punctuation from the input line, mark it, compare each word with the exclude array and delete all duplicates.
The comparison is performed by looping over each element in the exclude array for each word in the input text - this is like brute force and the failure of the Internet browser on arrays of more than a few hundred words.
I should also mention that my list of exceptions has about 300 items.
Any help would be really appreciated.
thank
David source
share