MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/4zukyt/is_your_javascript_function_actually_pure/d709xti/?context=3
r/javascript • u/vinnl • Aug 27 '16
48 comments sorted by
View all comments
0
[deleted]
1 u/bullet_darkness Aug 28 '16 Welp looks like every built in Math function is impure cause you can give it self-mutating/self-changing inputs. You can't ever trust Math.pow or Math.sin ever again since they won't necessarily give you a consistent output. /s
1
Welp looks like every built in Math function is impure cause you can give it self-mutating/self-changing inputs. You can't ever trust Math.pow or Math.sin ever again since they won't necessarily give you a consistent output. /s
0
u/[deleted] Aug 27 '16
[deleted]