![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Thomas 'PointedEars' Lahn <PointedEars (AT) nurfuerspam (DOT) de> wrote [...]: But the problem with your code and even with my code is that you always add elements to the array, even if the required data is already added. This looks like a problem suited more for Object objects instead of Array objects [...] maybe it could be solved by using hashes(associative arrays), instead of status[status.length] = [t.name, t.value]; one could do status[name]=value; so that status always keeps selected values from each name group, no duplicates.. |
![]() |
| Thread Tools | |
| Display Modes | |
| |