How would I check in JavaScript if an array has two or more of the SAME values in it?
For example;
['one','two','three']
-> false, because none the array items occur more than once.
['one','one','two']
-> true, as 'one' occurs more than once.
['one','one','one','two']
-> true, as 'one' occurs more than once.
['askja', 'askja', 'askja', 'iamms']
-> true, as 'askja' occurs 3 times.
Thanks in advance.