How do I ensure a pure function only calls pure functions in TypeScript / JavaScript?

前端 未结 0 1208
一向
一向 2020-11-29 16:35

I want to embrace functional programming, and ensure that my pure functions not change state.

How do I ensure that a function that I intend to be pure only calls othe

相关标签:
回答
  • 消灭零回复
提交回复
热议问题