Apply let/const transform.

This commit is contained in:
John-David Dalton
2017-01-07 23:18:22 -08:00
parent 4c881b2726
commit 10f64ee9c4
103 changed files with 207 additions and 207 deletions

View File

@@ -2,10 +2,10 @@ import baseUnset from './_baseUnset.js';
import isIndex from './_isIndex.js';
/** Used for built-in method references. */
var arrayProto = Array.prototype;
const arrayProto = Array.prototype;
/** Built-in value references. */
var splice = arrayProto.splice;
const splice = arrayProto.splice;
/**
* The base implementation of `_.pullAt` without support for individual
@@ -17,11 +17,11 @@ var splice = arrayProto.splice;
* @returns {Array} Returns `array`.
*/
function basePullAt(array, indexes) {
var length = array ? indexes.length : 0,
lastIndex = length - 1;
let length = array ? indexes.length : 0;
const lastIndex = length - 1;
while (length--) {
var index = indexes[length];
const index = indexes[length];
if (length == lastIndex || index !== previous) {
var previous = index;
if (isIndex(index)) {