Thursday, February 1, 2018

A "pure function" in JavaScript just provides an output based on inputs without lingering state in any shape.

Running the same inputs n number of times should give the same output over and over again in a pure function. These are not closures and there is not a mutation occurring.

No comments:

Post a Comment