If given an array of elements let array = ['apple', 'banana', 'salami', 'cheese']
What is the best practice to get this result : ['applebanaa' , 'salamicheese']
My first thought was to use reduce which works but it concatenates every string into one long string. See example below
```let array = ['apple', 'banana', 'salami', 'cheese']"
array.reduce((a,b) => a + b);
output : applebanaasalamicheese```
I feel like I am on the right track here. Maybe I need to do something to the equation within the parenthesis of reduce to get the result I am looking for?
I am relatively new to Javascript, but I hope that this question is clear enough to follow. Thanks in advance for any help!
Best Regards