Skip to content

Just a reminder on how to use high order functions

Notifications You must be signed in to change notification settings

craftystudio/high-order-functions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

High Order Functions

Just a table of high order functions for reference

Function What it does? Code
.filter() filter receives true/false and only puts the true ones on the array filter.js
.find() it finds the first one that returns true and returns all the array find.js
.forEach() forEach runs on each object on the array and does something with it, it doesn't return anything at all forEach.js
.map() map runs on each object on the array and returns something from it map.js
.reduce() reduce will take an accumulator first and secondly the value to accumulate reduce.js
.sort() It sorts the array depending on the arguments sort.js

Here are some examples

Function What it does? Code
Simple Search What if you want to search for more than one argument? simpleSearch.js
Simple Billing What if you want to know how much is the billing? simpleBilling.js

About

Just a reminder on how to use high order functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%