Here is the array [2, 44, 7, 38]. It's the string length of my table cells, so the table width is 100%. Now table will have 4 columns as the same as the length of the array. Now I want to convert this array into width percentage as more big values will get more place in the table.
I need the js method to convert an array that has dynamic length and inside it, dynamic values but it should give % to more which value is big.