Why Are Impure Functions Bad?
Why Are Impure Functions Bad? An impure function is kind of the opposite of a pure one – it doesn’t predictably produce the same result given the same inputs when called multiple times, and may cause side-effects. Do impure functions have side effects? A good sign that our function us impure (has side effect) is