mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Remove baseSlice.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import baseSlice from './baseSlice.js'
|
||||
import slice from '../slice.js'
|
||||
|
||||
/**
|
||||
* Casts `array` to a slice if it's needed.
|
||||
@@ -12,7 +12,7 @@ import baseSlice from './baseSlice.js'
|
||||
function castSlice(array, start, end) {
|
||||
const { length } = array
|
||||
end = end === undefined ? length : end
|
||||
return (!start && end >= length) ? array : baseSlice(array, start, end)
|
||||
return (!start && end >= length) ? array : slice(array, start, end)
|
||||
}
|
||||
|
||||
export default castSlice
|
||||
|
||||
Reference in New Issue
Block a user