diff --git a/uniqueId.js b/uniqueId.js index 19a7eb1e6..16909062d 100644 --- a/uniqueId.js +++ b/uniqueId.js @@ -17,7 +17,7 @@ let idCounter = 0 * uniqueId() * // => '105' */ -function uniqueId(prefix) { +function uniqueId(prefix='') { const id = ++idCounter return `${prefix + id}` }