Apply even more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-09 12:23:34 -08:00
parent e6152a97e8
commit dc687c1d85
177 changed files with 433 additions and 437 deletions

View File

@@ -30,17 +30,17 @@ import basePullAt from './_basePullAt.js';
* // => [2, 4]
*/
function remove(array, predicate) {
var result = [];
const result = [];
if (!(array && array.length)) {
return result;
}
var index = -1,
indexes = [],
length = array.length;
let index = -1;
const indexes = [];
const length = array.length;
predicate = baseIteratee(predicate, 3);
while (++index < length) {
var value = array[index];
const value = array[index];
if (predicate(value, index, array)) {
result.push(value);
indexes.push(index);