0
Is there an alternative way rather than to use nested loops?
const findSimilerWords = (strArr, input) => { for(let i of strArr){ for (let key in letters){ if (key === i){ input.push(letters[key]); break; } if (letters[key] === i){ input.push(key); break; } } } }
1 Resposta
+ 3
Be sure to tag the appropriate programming language. Also, what is the objective of this code?