It would actually make sense to have linter rules in javascript to report impure functions and avoid them as much as possible. But as the article said, JS is kinda broken already as you can have proxies and stuff that possibly adds side effects to the most basic expressions.