首页 > TAG信息列表 > arrVar

函数式编程的两条不同的原则

We have seen two distinct principles for functional programming: Don't alter a variable or object - create new variables and objects and return them if need be from a function.  Hint: using something like const newArr = arrVar, where arrVar is an a