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

2

u/[deleted] Aug 28 '16

What? You mean overwriting default object behaviour may cause unexpected things to happen, such as making your pure functions impure? You might as well argue that your function could be impure because code somewhere else might overwrite it.