How to create our own Map and Filter method implementations in JavaScript? | CodeSketched

preview_player
Показать описание
Hello and welcome to comscience simplified. In this video, we will look into the functionality of map and filter methods in JavaScript and try to create our own version for them. In this way, we will understand the internals of those methods in a better way.

Check out our other popular videos:

1. Learn about public-key cryptography

2. maximum substring in a string (Google interview question)

3. How the javascript engine works?

4. Real time median in a stream, another google interview question

5. Understand the Javascript event loop

6. Understand Promises in javascript

7. Git basics you must know
Рекомендации по теме
Комментарии
Автор

Since you are using a guard pattern to return early inside the if condition ( for array check ), there is no need of an else. In fact else is always best avoided, adding another level of indentation, which is the whole reason we have bouncer/guard pattern for clean code :)

Thanks for the implementation

pranavbhat
Автор

Short and simple to understand! Please make a video for reduce also.

chsravani
visit shbcf.ru