MCPcopy
hub / github.com/SYJun404/frank / getStyleId

Function getStyleId

src/main/views/rune/get101Runes.ts:17–31  ·  view source on GitHub ↗
(i:any)

Source from the content-addressed store, hash-verified

15};
16
17const getStyleId = (i:any) => {
18 let result = null;
19 for (const [mId, ids] of flatRunes) {
20 if (+i === +mId) {
21 result = +i;
22 break;
23 }
24
25 if (ids.includes(+i)) {
26 result = +mId;
27 break;
28 }
29 }
30 return result;
31};
32
33const isDifferentStyleId = (a:any, b:any) => {
34 if (!a || !b) {

Callers 2

isDifferentStyleIdFunction · 0.85
makePerkDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected