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

@@ -2,10 +2,10 @@ import baseIteratee from './_baseIteratee.js';
import createInverter from './_createInverter.js';
/** Used for built-in method references. */
var objectProto = Object.prototype;
const objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
const hasOwnProperty = objectProto.hasOwnProperty;
/**
* This method is like `_.invert` except that the inverted object is generated
@@ -33,7 +33,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
* });
* // => { 'group1': ['a', 'c'], 'group2': ['b'] }
*/
var invertBy = createInverter((result, value, key) => {
const invertBy = createInverter((result, value, key) => {
if (hasOwnProperty.call(result, value)) {
result[value].push(key);
} else {