mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Apply more let/const transforms.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user