A
pure function is a
function where the return value is only determined by its input values, without observable side effects. This is how
functions in math work: Math.cos(x) will, for the same value of x , always return the same result. ... A given invocation of a
pure function can always be replaced by its result.
read more >>