I have array like below
myArray = ["foo", "bar", "foo", "bar", "bar", "bar", "zoom"]
I want output like this
nameArray = ["foo", "bar", "zoom"]
and
qtyArray = [2, 4, 1]
I will be using Plotly out of resulting two arrays to draw bar plot.
TIA