Higher order functions

·

0 min read

Wraps a function Use "pure fucntions", which are stateless. E.g. maths funtions are pure functions.

memoize is an example of HOF. It's goal is to make sure you only run the function if the input value changes.

  • Good for encryption