Question
Array methods for a total noob…
Well, not exactly a total noob, I’ve got an old project
in lingo/shockwave (where I have over 10 years experience) that I
need to convert to Flash/AS3 (where I have about a week’s
experience). I’ve got the basic navigation and interface
elements working but I’m getting stuck trying to extract data
out of my primary data structure, a two dimensional array. An
example of the first few lines of the array are attached.
My first task is to write a function that can return a new one dimensional array, brandList, that contains a unique list of manufacturers (second element of the sub-array, or tireData[2])
keeping in mind that tireData is not sorted and will contain
duplicate entries for manufacturers. It seems the filter method
will be part of my solution but so far I haven’t gotten
anything to work. Anyone know of a good tutorial on the subject?
My first task is to write a function that can return a new one dimensional array, brandList, that contains a unique list of manufacturers (second element of the sub-array, or tireData