The javascript i am dealing with assigns random array names, made out of 2 letters**, letters only,both caps and sml.. i am looking for a specific address in one or more of those arrays, let it be 100, so the array looks like this :
AF[0:0, 1:0, 2:0, 3:1, 4:1, 5:0, 6:0, 7:15, 8:15, 9:15, 10:15 ......100:10,150:50,500:3]
and some extend pass my 100 mark, those are the ones i am after : so what i did was : get a list of all 2 digit, letters only (Aa,Bb,Cg,...) arrays that a page already has, named it doubleDigits making up an array of all possible hits on a name with 2 digits : came out to 1326 possible hits named it results compare both arrays, came up with a smaller number of possibilities, around 200 or so. named it intersection: now my file looks like this : intersection (249) (the following is a console.log of intersection, it does not show the keys, the keys are starting with zero up to 249 ...or wherever the file stops.) ["AB", "AD", "AF", "AI", "AQ", "AR", "AU", "Aa", "Ab", "Aj", "Ao", "At", "Ax", "BE", "BG", "BH", "BJ", "BN", "BP", "BQ", "BR", "BV", "BY", "BZ", "Ba", "Bc", "Bg", "Bk", "Bl", "Br", "Bu", "Bw", "By", "CD", "CI", "CM", "CN", "CT", "CV", "CZ", "Cd", "Cf", "Cj", "Cl", "Cv", "Cw", "DF", "DI", "DP", "DQ", "Dd", "Dn", "Dp", "Dv", "EG", "EN", "EQ", "EV", "EW", "Eb", "Ec", "Ee", "Ei", "Ej", "Em", "En", "Ep", "Es", "Et", "Ey", "Ez", "FJ", "FR", "FV", "FZ", "Fa", "Fd", "Fh", "Fj", "Fk", "Fm", "Fn", "Fq", "Fs", "Fu", "Fw", "GP", "GQ", "GS", "GT", "GV", "GY", "Gc", "Ge", "Gf", "Gk", "Gn", "Gq", "Gy", "HO", …]
i need to check each value, against my target, which is done on console by typing AB[100] and will tell me if there is a value there or not., then taking these valid values from all to a new array. i am using scripts from this site to do the work, but i have no idea where to go from here.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment