-
Notifications
You must be signed in to change notification settings - Fork 0
/
pokemon-evol.js
68 lines (65 loc) · 7.61 KB
/
pokemon-evol.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const pokemonEvolMap={
1:[1,2,3,10033], 2:[4,5,6,10034,10035], 3:[7,8,9,10036], 4:[10,11,12], 5:[13,14,15,10090], 6:[16,17,18,10073], 7:[19,20,10091,10092,10093], 8:[21,22], 9:[23,24], 10:[172,25,26],
11:[27,28], 12:[29,30,31], 13:[32,33,34], 14:[173,35,36], 15:[37,38], 16:[174,39,40], 17:[41,42,169], 18:[43,44,45,182], 19:[46,47], 20:[48,49],
21:[50,51], 22:[52,53,863], 23:[54,55], 24:[56,57,979], 25:[58,59], 26:[60,61,62,186], 27:[63,64,65,10037], 28:[66,67,68], 29:[69,70,71], 30:[72,73],
31:[74,75,76], 32:[77,78], 33:[79,80,199,10071], 34:[81,82,462], 35:[84,85], 36:[86,87], 37:[88,89], 38:[90,91], 38:[92,93,94,10038], 39:[95,208,10072], 40:[96,97],
41:[98,99], 42:[100,101], 43:[102,103], 44:[104,105], 45:[236,106,107,237], 46:[108,463], 47:[109,110], 48:[111,112,464], 49:[440,113,242], 50:[114,465],
51:[116,117,230], 52:[118,119], 53:[120,121], 54:[439,122,866], 55:[123,212,900,10046], 56:[238,124], 57:[239,125,466], 58:[240,126,467], 59:[129,130,10041], 60:[133,134,135,136,196,197,470,471,700],
61:[137,233,474], 62:[138,139], 63:[140,141], 64:[446,143], 65:[147,148,149], 66:[152,153,154], 67:[155,156,157], 68:[158,159,160], 69:[161,162], 70:[163,164],
71:[165,166], 72:[167,168], 73:[170,171], 74:[175,176,468], 75:[177,178], 76:[179,180,181,10045], 77:[298,183,184], 78:[438,185], 79:[187,188,189], 80:[190,424],
81:[191,192], 82:[193,469], 83:[194,195], 84:[198,430], 85:[200,429], 86:[360,202], 87:[204,205], 88:[207,472], 89:[209,210], 90:[215,461],
91:[216,217,901,10272], 92:[218,219],93:[220,221,473], 94:[223,224], 95:[458,226], 96:[228,229,10048], 97:[231,232],98:[246,247,248,10049], 99:[234,899], 100:[203,981],
101:[206,982], 102:[252,253,254,10065], 103:[255,256,257,10050], 104:[258,259,260,10064], 105:[261,262], 106:[263,264,862], 107:[265,266,267,268,269], 108:[270,271,272], 109:[273,274,275], 110:[276,277],
111:[278,279], 112:[280,281,282,475,10051,10068], 113:[283,284], 114:[285,286], 115:[287,288,289], 116:[290,291,292], 117:[293,294,295], 118:[296,297], 119:[299,476], 120:[300,301],
121:[304,305,306,10053], 122:[307,308,10054], 123:[309,310,10055], 124:[406,315,407], 125:[316,317], 126:[318,319,10070], 127:[320,321], 128:[322,323,10087], 129:[325,326], 130:[328,329,330],
131:[331,332], 132:[333,334,10067], 133:[339,340], 134:[341,342], 135:[343,344], 136:[345,346], 137:[347,348], 138:[349,350], 139:[353,354,10056], 140:[355,356,477],
141:[433,358], 142:[361,362,478,10074], 143:[363,364,365], 144:[366,367,368], 145:[371,372,373,10089], 146:[374,375,376,10076], 147:[387,388,389], 148:[390,391,392], 149:[393,394,395], 150:[396,397,398],
151:[399,400], 152:[401,402], 153:[403,404,405], 154:[408,409], 155:[410,411], 156:[412,413,414], 157:[415,416], 158:[418,419], 159:[420,421], 160:[422,423],
161:[425,426], 162:[427,428,10088], 163:[431,432], 164:[434,435], 165:[436,437], 166:[443,444,445,10058], 167:[447,448,10059], 168:[449,450], 169:[451,452], 170:[453,454],
171:[456,457], 172:[459,460,10060], 173:[495,496,497], 174:[498,499,500], 175:[501,502,503], 176:[504,505], 177:[506,507,508], 178:[509,510], 179:[511,512], 180:[513,514],
181:[515,516], 182:[517,518], 183:[519,520,521], 184:[522,523], 185:[524,525,526], 186:[527,528], 187:[529,530], 188:[532,533,534], 189:[535,536,537], 190:[540,541,542],
191:[543,544,545], 192:[546,547], 193:[548,549], 194:[551,552,553], 195:[554,555,10017], 196:[557,558], 197:[559,560], 198:[562,563,867], 199:[564,565], 200:[566,567],
201:[568,569], 202:[570,571], 203:[572,573], 204:[574,575,576], 205:[577,578,579], 206:[580,581], 207:[582,583,584], 208:[585,586], 209:[588,589], 210:[590,591],
211:[592,593], 212:[595,596], 213:[597,598], 214:[599,600,601], 215:[602,603,604], 216:[605,606], 217:[607,608,609], 218:[610,611,612], 219:[613,614], 220:[616,617],
221:[619,620], 222:[622,623], 223:[624,625,983], 224:[627,628], 225:[629,630], 226:[633,634,635], 227:[636,637], 228:[650,651,652], 229:[653,654,655], 230:[656,657,658,10117,10116,],
231:[659,660], 232:[661,662,663], 233:[664,665,666], 234:[667,668], 235:[669,670,671,10061], 236:[672,673], 237:[674,675], 238:[677,678,10025], 239:[679,680,681,10026], 240:[682,683],
241:[684,685], 242:[686,687], 243:[688,689], 244:[690,691], 245:[692,693], 246:[694,695], 247:[696,697], 248:[698,699], 249:[704,705,706], 250:[708,709],
251:[710,711], 252:[712,713], 253:[714,715], 254:[722,723,724], 255:[725,726,727], 256:[728,729,730], 257:[731,732,733], 258:[734,735], 259:[736,737,738], 260:[739,740],
261:[742,743], 262:[744,745], 263:[747,748], 264:[749,750], 265:[751,752], 266:[753,754], 267:[755,756], 268:[757,758], 269:[759,760], 270:[761,762,763],
271:[767,768], 272:[769,770], 273:[772,773], 274:[782,783,784], 275:[789,790,791,792], 276:[803,804], 277:[808,809], 278:[810,811,812], 279:[813,814,815], 280:[816,817,818],
281:[824,825,826], 282:[821,822,823], 283:[819,820], 284:[827,828], 285:[831,832], 286:[833,834], 287:[835,836], 288:[829,830], 289:[850,851], 290:[837,838,839],
291:[846,847], 292:[868,869], 293:[840,841,842,1011,1019], 294:[83,865], 295:[222,864], 296:[859,860,861], 297:[856,857,858], 298:[878,879], 299:[848,849], 300:[843,844],
301:[854,855], 302:[872,873], 303: [852,853], 304: [885,886,887], 305: [891,892], 306: [550,10016,902], 307: [211,904], 308: [884,1018], 309: [906,907,908], 310: [909,910,911],
311: [912,913,914], 312: [915,916], 313: [917,918], 314: [919,920], 315: [953,954], 316: [971,972], 317: [955,956], 318: [960,961], 319: [963,964], 320: [928,929,930],
321: [951,952], 322: [938,939], 323: [965,966], 324: [924,925], 325: [974,975], 326: [996,997,998], 327: [921,922,923], 328: [940,941], 329: [932,933,934], 330: [969,970],
331: [944,945], 332: [926,927], 333: [942,943], 334: [946,947], 335: [999,1000,10263], 336: [957,958,959], 337: [935,936,937], 338: [948,949], 339: [1012,1013], 340: [10276,10277],
//may conatain inaccurate id's
341: [10273,10274,10275], 342: [10268,10269,10270,10271], 343: [10264,10265,10266,10267], 344: [10260,10261,10262], 345: [10258,10259], 346: [1014], 347: [1015], 348: [1016], 349: [1017], 350: [1020],
351: [1021], 352: [1022], 353: [1023], 354: [1024], 355: [1025], 356: [10001,10002,10003], 357: [10004,10005], 358: [492,10006], 359: [487,10007], 360: [479,10008,10009,10010,10011,10012],
361: [351,10013,10014,10015], 362: [646,10022,10023], 363: [10018], 364: [641,10019,10020,10021], 365: [647,10024], 366: [115,10039], 367: [127,10040], 368: [142,10042], 369: [151,150,10043,10044], 370: [214,10047],
371: [303,10052], 372: [359,10057], 373: [380,10062], 374: [381,10063], 375: [302,10066], 376: [531,10069], 377: [719,10075], 378: [382,10077], 379: [383,10078], 380: [384,10079],
381: [10080,10081,10082,10083,10084,10085], 382: [720,10086], 383: [10094,10095,10096,10097,10098,10099], 384: [718,10119,10118,10120], 385: [10121], 386: [10122], 387: [10123,10124,10125], 388: [10126], 389: [10127], 390: [10128],
391: [10129], // 392: [], // 393: [], // 394: [], // 395: [], // 396: [], // 397: [], // 398: [], // 399: [], // 400: [],
}
// console.log(Object.values(pokemonEvolMap).length);
/*
[--TESTING findPokemonEvolArr FUNCTION PERFORMANCE--]
1)
measuring function execution time with
performance ---- high accuracy
code:
const start = performance.now();
await console.log(functionToBeMeasured(1));
const end = performance.now();
console.log(`Execution time: ${end - start} ms`);
*************************************************
2)
with console.time() and console.timeEnd()
code:
console.time('Execution Time');
console.log(functionToBeMeasured(10129));
console.timeEnd('Execution Time');
Results:
lowest recorded 6ms
highest recorded 11ms
*/