I have read some partially solutions on my problem but unfortunately I've come up for questioning. So here's my question. I have an array var = results[1,2,2,3,1,3]
. I have to print/echo all the values and the final values should be display the value of 1,2,3
. I've read about finding values that has a duplicate but this might not work on mine since it only returns duplicate values. I've read about filtering unique values but of course it will only show me a unique value and won't show me the others. And one of the comments there suggests this and absolutely maybe an exact solution:
_.uniq([1, 2, 1, 3, 1, 4]);
=> [1, 2, 3, 4]
the link is HERE...
But I don't know how to use it correctly. Is it applicable to my problem?
Here's my fiddle anyway.