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

Last updated

Was this helpful?