Is there a way in JavaScript to determine if an array contains two or more identical values?
For instance;
['one','two','three']
-> false, because no items in the array are repeated.
['one','one','two']
-> true, because 'one' appears multiple times.
['one','one','one','two']
-> true, because 'one' appears multiple times.
['askja', 'askja', 'askja', 'iamms']
-> true, because 'askja' appears 3 times.
Appreciate your help.