The vast majority of the time, however, I encourage you to stick with map and filter rather than replicating that behavior with reduce. Thanks for contributing an answer to Stack Overflow! link brightness_4 code