File size: 284 Bytes
0c20ea8
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
export function convertModeObjectToArray(mode: {
  soft_mode: number;
  vehicle: number;
}) {
  const softModePercentage = (mode.soft_mode * 100).toFixed(2) + "%";
  const vehiclePercentage = (mode.vehicle * 100).toFixed(2) + "%";

  return [softModePercentage, vehiclePercentage];
}