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

@@ -1,7 +1,7 @@
import toString from './toString.js';
/** Used to generate unique IDs. */
var idCounter = 0;
let idCounter = 0;
/**
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
@@ -21,7 +21,7 @@ var idCounter = 0;
* // => '105'
*/
function uniqueId(prefix) {
var id = ++idCounter;
const id = ++idCounter;
return toString(prefix) + id;
}