forked from keinBot/cuffeo
irgendwas mit overhaul
This commit is contained in:
@@ -38,28 +38,3 @@ export default class cuffeo extends EventEmitter {
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Map.prototype.hasi = function(val) {
|
||||
try {
|
||||
for (let [key] of this)
|
||||
if(key.toLowerCase() === val.toLowerCase())
|
||||
return true;
|
||||
return false;
|
||||
} catch(err) {
|
||||
console.log("das übliche mit tolowercase()");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
Map.prototype.geti = function(val) {
|
||||
for (let [key, value] of this)
|
||||
if(key.toLowerCase() === val.toLowerCase())
|
||||
return value;
|
||||
return false;
|
||||
};
|
||||
|
||||
Map.prototype.deli = function(val) {
|
||||
for (let [key] of this)
|
||||
if(key.toLowerCase() === val.toLowerCase())
|
||||
this.delete(key);
|
||||
};
|
||||
Reference in New Issue
Block a user