Ugh... I think u accidentally copy pasted code for filter in reduce...
I don't think I did, they just look really similar. Instead of .filter it says .reduce :)
Apologies, at the time I "really" saw filter instead of reduce. LOL
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.