returns unit values
array | an array of unit values arranged in the alphabetical order |
var units = $$('list').getUnits(); // ->[1, C, M, T]
The method returns the units set by the uniteBy property:
uniteBy:function(obj){
return obj.title.substr(0,1); //first letters of item titles
}