Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

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