From imperative to functional JavaScript
Diogo Spínola

Hi Diogo,

Thanks for the article, I’m happy to see so many people pushing for more of a functional approach to JS (I learned to code on a functional paradigm).

I do believe I found a slight mistake in your code:

function artistsCorrect(artistsList, photosList, camerasList) {
return, index) => {



I think you mean to use artistsList, not artists (or to make the parameters artists instead of artistsList). Small detail, I just figured you’d want to know.