分别使用reduce和map高阶函数(higher-order function)实现数组分割。可以看到reduce的写法更简洁。

es6, basics

JavaScript
语言:
CSS
语言:
HTML
导入代码模板: