📖
Functional JS
  • Functional Programming in JS
  • Types of Functions
    • Pure Functions
    • Higher-Order Function
    • Closure
    • Currying
    • Partial Application
Powered by GitBook
On this page

Was this helpful?

  1. Types of Functions

Pure Functions

A function that creates and returns a value based on it's input with no side effects

Pure Function Rules

  1. Have input parameters

  2. No stateful values

  3. Returns value only based on input parameters

PreviousFunctional Programming in JSNextHigher-Order Function

Last updated 4 years ago

Was this helpful?