Re:Is your JavaScript function actually pure?
by masklinn on Tuesday September 20, 2016 @07:08AM
(#12538549)
> If not, then I don't see how any JS function that takes an argument (and evaluates it) can be pure.
A JS function could take an argument, use it but not evaluate it (or not evaluate it in all cases). `typeof` doesn't evaluate its argument for instance.
A JS function could take an argument, use it but not evaluate it (or not evaluate it in all cases). `typeof` doesn't evaluate its argument for instance.