Hope this will be useful
var myArray = [100, 200, 100, 200, 100, 100, 200, 200, 200, 200];
var myArrayTrimmed = [];
myArray.forEach(function(item){
if(myArrayTrimmed.indexOf(item) ==-1){
myArrayTrimmed.push(item);
}
})
console.log(myArrayTrimmed);
Check this jsfiddle