Extract only the elements you need from an array with the filter method #shorts

preview_player
Показать описание
The filter method is one of the most useful array methods in my opinion

------------

Рекомендации по теме
Комментарии
Автор

Your teaching style is awesome. Keep it up, bro.

CodingGeeek
Автор

Looks very similar to Where clause in C#.

In C#, this would look like:
numbers.Where(number => number % 2 == 1)

fieryscorpion
Автор

Thanks for this
Love the content (just found this out and also just started the whole coding journey)

ghosttheprogram
Автор

Please can u tell us which vscode plugin u use to show the errors or the missing symbols in red

clickgg
Автор

Hey love the videos man what vscode extension are you using that tells you the syntax errors in your code inline?

daviddarcy
Автор

What's the extension that is showing the possible errors on the go ?

abd-ulbasit
Автор

why does 1 show up in console log, when the remainder of 1 divided by 2 is 0.5?

grandpaonfire
Автор

So filter method returns a new array with the filtered values. Is this right?

ylovers
Автор

you also don't need brackets around the `number`

harveygoldsmith