2 ms·
> 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 eval
by masklinn 10y ago
> 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.
- fenomas 10y agoCertainly it could. I don't know what that has to do with my comment though.