JavaScript filter Array Method in Depth

  Рет қаралды 6,670

Zaiste Programming

Zaiste Programming

4 жыл бұрын

In JavaScript, the filter() function is used to filter out the items from an array based on a condition provided as input in the form of a predicate. This function is defined as a method on the Array object so that it can be invoked from any array.
Predicates can be used to define conditions for the filtering process. We use predicates to decide whether or not to keep each item in or not.
Functional programming is a programming paradigm in which you build programs by composing functions. The computation is then the evaluation of those functions. Functional programming focuses on the usage of pure functions and on avoiding shared, mutable state. This programming paradigm is declarative. Functional code is usually more concise and easier to test.
In this mini series, we will embark on an exciting journey to learn a bit about functional programming by using JavaScript. Presented concepts will be mostly universal and applicable to other programming languages. This series is created with beginners and non-programmers in mind; don't worry, we will take it slowly!
Zaiste Weekly Newsletter: bit.ly/zaiste-weekly
#functional #javascript #filter

Пікірлер: 8
@Aziz-kw6ct
@Aziz-kw6ct Жыл бұрын
Thanks for that content, it was very useful to me. thx
@akhtarandroid
@akhtarandroid 3 жыл бұрын
This is the best explanation I have found on youtube for higher order functions and the filter function. Very glad you made this series and it deserves a lot more views.
@kim92se64
@kim92se64 4 жыл бұрын
Sir what a awesome video on Filter array method i never seen like that video on filters
@MuhammadAli-hs3cl
@MuhammadAli-hs3cl Жыл бұрын
Merci beaucoup!
@AndySongCode
@AndySongCode 4 жыл бұрын
for logging array, I'd like to use console.table(result) rather than console.log(result);
@brokenoho
@brokenoho 3 жыл бұрын
What are you using to run this code, can I do this as easily in vscode?
@AndySongCode
@AndySongCode 4 жыл бұрын
Array.prototype.myOwnFilter = function(predicate) {
Understanding JavaScript's map() Array Method
13:08
Zaiste Programming
Рет қаралды 2,7 М.
Functional JavaScript Tutorial - #1: Functions
21:37
Zaiste Programming
Рет қаралды 10 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 16 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 17 МЛН
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 778 М.
JavaScript Higher Order Functions & Arrays
34:56
Traversy Media
Рет қаралды 981 М.
Exercises: Array Filter - Javascript In Depth
31:46
Tech with Nader
Рет қаралды 1,5 М.
An Introduction to Higher-Order Functions in JavaScript
16:45
Zaiste Programming
Рет қаралды 4,5 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level Learning
Рет қаралды 549 М.
Functional JavaScript Tutorial - #3 Side Effects & Pure Functions
18:44
Zaiste Programming
Рет қаралды 5 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 846 М.
Callbacks in JavaScript Explained!
14:03
Code with Ania Kubów
Рет қаралды 151 М.