The first array –
const arrOne = [1, 1, 2, 3, 4, 6, 6, 7, -7, 8, -8];
The wanted output filter by equality and oppisite equality –
[2, 3, 4]
I saw a-lot of question similar to what I want to do but they always returns the unique as well. example –
const arrOne = [1, 1, 2, 3, 4, 6, 6, 7, -7, 8, -8];
output –
[1, 2, 3, 4, 6, 7, -7, 8, -8]