BLADEBURNER: Remove unused code (#1368)

This commit is contained in:
catloversg
2024-06-09 03:51:05 +07:00
committed by GitHub
parent abcd6c545a
commit b8f03cb50b
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class EnumHelper<EnumObj extends object, EnumMember extends Member<EnumObj> & st
this.valueSet = new Set(this.valueArray);
this.fuzzMap = new Map(this.valueArray.map((val) => [val.toLowerCase().replace(/[ -]+/g, ""), val]));
}
/** Provide a boolean indication for whether a */
/** Provide a boolean indication for whether a value is a member of an enum */
isMember(toValidate: unknown): toValidate is EnumMember {
// Asserting that Set.has actually takes in arbitrary values, which it does.
return (this.valueSet.has as (value: unknown) => boolean)(toValidate);