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

@@ -4,8 +4,8 @@ import mapToArray from './_mapToArray.js';
import setToPairs from './_setToPairs.js';
/** `Object#toString` result references. */
var mapTag = '[object Map]',
setTag = '[object Set]';
const mapTag = '[object Map]';
const setTag = '[object Set]';
/**
* Creates a `_.toPairs` or `_.toPairsIn` function.
@@ -16,7 +16,7 @@ var mapTag = '[object Map]',
*/
function createToPairs(keysFunc) {
return object => {
var tag = getTag(object);
const tag = getTag(object);
if (tag == mapTag) {
return mapToArray(object);
}