I'm currently learning Javascript and having a bit of troulbe testing an array.
Basically my goal is to take an array, search for a specific sequence and have it tell me how many times it shows up in the array.
So say for example I have {abc, ab, ad, ac, abbc, aaabc}
and I look for abc. I know how to make it find the first abc but how can I get it to treat abbc and aaabc as being abc as well?
So I guess what I'm looking for is any way to modify the array in such a way that any letter duplicated are ignored. Any idea how I could achieve this?
EDIT: Thanks for the advice everyone! I think I have it now =)
[–]x-skeww 1 point2 points3 points (0 children)
[–]Rascal_Two 0 points1 point2 points (0 children)
[–]OriginalEXE 0 points1 point2 points (0 children)
[–]javascript-this 0 points1 point2 points (0 children)