📜  函数式编程 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:15.494000             🧑  作者: Mango

代码示例2
By respecting these restrictions, 
FP aims to write code that is clearer to understand and more bug resistant. 
This is achieved by avoiding using flow-control statements 
(for, while, break, continue, goto) which make the code harder to follow. 
 requires us to 
write pure, deterministic 
functions which are less likely to be buggy.