chunk 的依赖关系如下图所示

chunk 依赖图

通过上面的依赖图我们可以知道,chunk 依赖 slice 和 toInteger 这两个函数,slice 函数基于索引切割数组生成新的子数组,toInteger 函数把传入的值转换为整数。