I have an array like ['a','b','c','d','e','f'] and I want to reverse only a part that I filter previously, for example I filter and I get ['c','d','e'] and I do reverse and the final result that I expected is ['a','b','e','d','c','f'].
I've tried to do array.slice().filter(condition).reverse(), and another solutions from stackoverflow but no one worked for me.
Any idea?