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

@@ -12,12 +12,12 @@ import hashSet from './_hashSet.js';
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(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]);
}
}