Apply more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-08 23:38:19 -08:00
parent ca9e6fa087
commit 4d0c15b49e
115 changed files with 621 additions and 613 deletions

View File

@@ -8,7 +8,7 @@
* @returns {Array} Returns the slice of `array`.
*/
function baseSlice(array, start, end) {
var index = -1,
let index = -1,
length = array.length;
if (start < 0) {
@@ -21,7 +21,7 @@ function baseSlice(array, start, end) {
length = start > end ? 0 : ((end - start) >>> 0);
start >>>= 0;
var result = Array(length);
const result = Array(length);
while (++index < length) {
result[index] = array[index + start];
}