We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b819166 commit 0c68b61Copy full SHA for 0c68b61
lib/code-generator.js
@@ -112,16 +112,16 @@ export const CodeGenerator = (function () {
112
* @returns {string}
113
*/
114
randomChars: function (allowedChars, howMany) {
115
- const text = '';
116
- for (const i = 0; i < howMany; i++) {
+ let text = '';
+ for (let i = 0; i < howMany; i++) {
117
text += allowedChars.charAt(Math.floor(Math.random() * allowedChars.length));
118
}
119
return text;
120
121
};
122
123
function loadExistingCodes (pattern, options) {
124
- const existingCodes = [];
+ let existingCodes = [];
125
if (typeof options.existingCodesLoader === 'function') {
126
existingCodes = options.existingCodesLoader(pattern);
127
0 commit comments