I have the following code in JavaScript and I would like to know where the error lies, I need to print non-repeated values or if you know some more effective way:
var t1 = 2;
var t2 = 2;
var t3 = 3;
var t4 = [t1,t2,t3];
var t5 = t4.unique();
console.log(t5);