Help using Reduce method: Simple but tricky?

Hi, I’ve added the code below. I want to add the interest everytime when a new values comes from other loops. This can be possible via reduce method but I’m unable to store all the values to the array.

if (!isNaN(interest)) {
    $item('#interest').text = interest.toString();    
}

Any luck on this?

Not sure if you are looking for this one…

let newInput = "intereset6"
let interests = ["interest1", "interest2", "interest3", "interest4", "interest5"]

for (let i = 0; i < interests.length; i++) {
    const interest = interests[i];

    if (interest===newInput) {}
    else {interests.push(interest); break;}