I have an array of values similar to:
["100", "330", "22", "100", "4.7", "0.01", "0.01", "330", "0.01", "100", "47", "22", "100", "0.01"]
Using JavaScript I would like to split this array into a number of arrays where only matching strings are in those arrays like this:
["100", "100", "100"]
["330", "330"]
["22", "22"]
["0.01", "0.01", "0.01", "0.01"]
["47"]
["4.7"]
Any help with this would be much appreciated! Thanks!