Please do not use 'reduce' to get the names. There's another method for this and it is called map. First map, then reduce. Also... Please use a Set to collect the unique names.
I'm a full-stack developer who loves to write about software programming and technology in general. Need a freelancer or want to collaborate? Send an email to my address below.
Please do not use 'reduce' to get the names. There's another method for this and it is called map. First map, then reduce. Also... Please use a Set to collect the unique names.
Hi Christian,
I mentioned that in the article.
Thanks.