decrease the usage of var

This commit is contained in:
Gerome Matilla 2020-06-07 15:24:18 +08:00
parent 2c490585b2
commit a9b176a483

View File

@ -104,7 +104,7 @@ const populateWebMenu = () => {
String.prototype.fuzzy = function(term, ratio) {
const string = this.toLowerCase();
const compare = term.toLowerCase();
const matches = 0;
let matches = 0;
if (string.indexOf(compare) > -1) return true; // covers basic partial matches
for (let i = 0; i < compare.length; i++) {