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`. * @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)