Map, Reduce & Filter Functions in JavaScript | Higher Order Functions

Publicado el: 27 julio 2020
en el canal de: Codingflag
1,700
51

In this video, I will show you everything you need to know about widely used and most popular higher order functions i.e. map, reduce and filter. You can simplify your javascript code by using map(), reduce() and filter() functions.
Map, reduce and filter all are array methods in javascript, each method iterates over an array and perform calculations.

Example used in video:

let a = [1,2,3,4,5];

Map:
a.map(function(number){ return number*10; });
// returns [10,20,30,40,50]

// Reduce
a.reduce(function(acc,value){ return acc+ val; });
// 15

//Filter
a.filter(function(number){ return number%2 == 0; });
// [2,4]


En esta página del sitio puede ver el video en línea Map, Reduce & Filter Functions in JavaScript | Higher Order Functions de Duración hora minuto segunda en buena calidad , que subió el usuario Codingflag 27 julio 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,700 veces y le gustó 51 a los espectadores. Disfruta viendo!