Higher-order functions are the basis of functional programming.
Higher-order functions are functions that:
See also: Function - Callback function
Duplicate or similar code will tell you that to create you own.