Remove baseSlice.

This commit is contained in:
John-David Dalton
2017-04-17 21:03:39 -07:00
parent a023f92049
commit e5e8f35c06
11 changed files with 37 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
import baseSlice from './.internal/baseSlice.js'
import slice from './slice.js'
/**
* Creates an array of elements split into groups the length of `size`.
@@ -29,7 +29,7 @@ function chunk(array, size) {
const result = new Array(Math.ceil(length / size))
while (index < length) {
result[resIndex++] = baseSlice(array, index, (index += size))
result[resIndex++] = slice(array, index, (index += size))
}
return result
}