mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Avoid let lists.
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
* @returns {Array} Returns the slice of `array`.
|
* @returns {Array} Returns the slice of `array`.
|
||||||
*/
|
*/
|
||||||
function baseSlice(array, start, end) {
|
function baseSlice(array, start, end) {
|
||||||
let index = -1,
|
let index = -1
|
||||||
length = array.length
|
let length = array.length
|
||||||
|
|
||||||
if (start < 0) {
|
if (start < 0) {
|
||||||
start = -start > length ? 0 : (length + start)
|
start = -start > length ? 0 : (length + start)
|
||||||
|
|||||||
Reference in New Issue
Block a user