README.md

Logic #

Logic functions are pure functions. They take primitives, objects or arrays as arguments and they return primitives, objects or arrays. Handlers will use logic functions to transform user input.

Logic functions will never ...

  • read from the DOM
  • write to the DOM
  • use events
  • use prompt/alert/confirm
  • use data that is not passed as a parameter