Is there a method that removes several identical/duplicate items from a JavaScript array like this:
var array = [55, 65, 55, 65, 55, 65, 55, 65, 55, 65];
With this array, for example, I am trying to remove all of the duplicates of 55 and 65 so that I am only left with [55, 65].
I've tried using splice() but that only removes by the position number, where I need something to remove all of the items of the same value.
 
     
    