js函数,高阶函数

33 阅读1分钟

回顾简单函数 1、数组 1)基于自身改变的 push pop shift unShift splice, reverse, sort 2)自身不变,会生成新变量的 concat,slice,split,join,indexOf,lastIndexOf,

2、字符串 replace, match, test, substring,subString,

1)数组 1、foreach 2、map 3、reduce 4、includes 5、findIndex 6、find 7、filter 8、some 9、every