CODEBASE: Fix lint errors 2 (#1756)

This commit is contained in:
catloversg
2024-11-07 14:09:11 +07:00
committed by GitHub
parent e3c10e9f0f
commit 36c143b687
48 changed files with 267 additions and 146 deletions
+6
View File
@@ -125,3 +125,9 @@ export function getNsApiDocumentationUrl(isDevBranch: boolean = CONSTANTS.isDevB
isDevBranch ? "dev" : "stable"
}/markdown/bitburner.ns.md`;
}
export function getKeyFromReactElements(a: string | React.JSX.Element, b: string | React.JSX.Element): string {
const keyOfA = typeof a === "string" ? a : a.key ?? "";
const keyOfb = typeof b === "string" ? b : b.key ?? "";
return keyOfA + keyOfb;
}