EitherFilter Refactoring - JavaScript Algorithm | CSX Callbacks & Higher Order Functions

preview_player
Показать описание
Refactoring my solution for the CSX EitherFilter algorithm using higher order functions .filter() and .reduce().

Learn JavaScript with CSX:
Рекомендации по теме
Комментарии
Автор

Great explanation mate ! Finally undrestood reduce method ! Thanks ! Sub

pizzaitaliana
Автор

this was the greatest explanation of this problem by far

JasonHong
Автор

Thank you so much for these videos! I was hard stuck on this section of CSX and felt like I couldn't get through it until I found your videos and understood where I was getting lost.

ernestogonzalez
Автор

Thank you so much for the amazing content. I appreciate your insight, and your breakdown on the concepts and how to apply them. You Da Man!

Chayse
Автор

** One small correction - at 6:08 I say to return the element itself -- this is incorrect as the element itself might be a falsey value (such as 0, which would pass the conditional checks but not get 'filtered into' the new array). As per the MDN docs the element returned with the callback inside of .filter() must be a value that is coerce-able to true (a truthy value) in order for .filter() to 'keep' it.

codetour
Автор

The way you explained reduce and filter where perfect. thank you! no matter how many times i read the documentation Im just like WTF did i just read. Can you do a video explain spread operator.

paranoidfrandroid