UNPKG

gp-15-chunk

Version:
8 lines (6 loc) 147 B
拆分数组的方法,基于lodash 使用方法: ``` const chunk = require('../index.js') console.log(chunk([1, 3, 4], 2)) // [[1, 3], [4]] ```