Avoid let lists.

This commit is contained in:
John-David Dalton
2017-03-02 10:03:12 -08:00
parent e7bbcfa72b
commit ba52c744ae

View File

@@ -8,8 +8,8 @@
* @returns {Array} Returns the slice of `array`.
*/
function baseSlice(array, start, end) {
let index = -1,
length = array.length
let index = -1
let length = array.length
if (start < 0) {
start = -start > length ? 0 : (length + start)