r/javascript • • Aug 27 '16

Is your JavaScript function actually pure?

http://staltz.com/is-your-javascript-function-actually-pure.html
8 Upvotes

48 comments sorted by

View all comments

1

u/simcptr Aug 28 '16

It seems like "safe" might be a better word than "pure" to describe what he's talking about... "Given pathological input, will my function do what I expect?" is more a question of safety than purity I think.