basic implementation of saved searches finished, closes #83

This commit is contained in:
azivner
2018-03-12 23:27:21 -04:00
parent e5c0acbb43
commit f1b0b3bcdb
2 changed files with 28 additions and 3 deletions

View File

@@ -219,4 +219,15 @@ function toObject(array, fn) {
}
return obj;
}
function randomString(len) {
let text = "";
const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (let i = 0; i < len; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
}