gammatools/web/assets/js/formatSpeedMnemonic.js

10 lines
286 B
JavaScript

export function formatSpeedMnemonic(data){
if (data[0] === 0 && data[1] === 0 && data[2] === 0){
return "Immobile";
}
if (data[0] === 1 && data[1] === 1 && data[2] === 1) {
return "See Description"
}
return data[0] + '/' + data[1] + '/' + data[2];
}