Util cleanup

This commit is contained in:
Ian Gulliver
2019-07-07 21:47:16 +00:00
parent 7a2ac17344
commit 39a3d20e73
3 changed files with 19 additions and 23 deletions

View File

@@ -25,20 +25,4 @@ function intersects(set1, set2) {
return false;
}
class StringMap extends Map {
has(key) {
return super.has(key.toString());
}
get(key) {
return super.get(key.toString());
}
set(key, value) {
return super.set(key.toString(), value);
}
delete(key) {
return super.delete(key.toString());
}
}
<!--# include file="StringMap.js" -->