In this short video, we use the reduce method on the array to define a filter function to help build intuition for how reduce works. I find that reinventing the wheel, especially when introducing constraints, is a great way to develop new techniques and gain a deeper understanding of your tools.
Edit: I realize I made a mistake around the 3:34 mark of the video and the variable name inside of predFn should be currentVal instead of currentValue! My apologies, I'm still getting used to making and editing videos and I'll work to do better in the future!
On this page of the site you can watch the video online Implement Filter Using Reduce with a duration of hours minute second in good quality, which was uploaded by the user Splain Train 06 November 2019, share the link with friends and acquaintances, this video has already been watched 430 times on youtube and it was liked by 23 viewers. Enjoy your viewing!