DEV Community

Discussion on: JavaScript Callbacks Explained in 5 Minutes

Collapse
 
jonrandy profile image
Jon Randy 🎖️ • Edited

A few random possibilities off the top of my head:

  • A function to wrap another function and return the wrapped version (debounce springs to mind)
  • A function to compose one or more functions, and return the new one.
  • A function to return the arity of the passed function
  • A function to display the source of the passed function