Hacker News new | ask | show | jobs
by masklinn 3559 days 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.

1 comments

Certainly it could. I don't know what that has to do with my comment though.