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 a slice of `array` with `n` elements taken from the beginning.
@@ -26,7 +26,7 @@ function take(array, n=1) {
if (!(array != null && array.length)) {
return []
}
return baseSlice(array, 0, n < 0 ? 0 : n)
return slice(array, 0, n < 0 ? 0 : n)
}
export default take