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

@@ -12,12 +12,12 @@ import mapCacheSet from './_mapCacheSet.js';
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
let index = -1;
const length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
const entry = entries[index];
this.set(entry[0], entry[1]);
}
}