Say i have an array:
How would i count the duplicates and return the amount?Code:var my_array:Array = new Array("blah", "blah", "blah2" , "blah3", "blah2", "blah", "blah3", "blah4")
For instance, something like:
countArray(my_array, "blah") or my_array.countArray("blah")
to return the number "3"

