Closed notmaster closed 4 years ago
` * @param {number} num
${Roman[i][1]}${Roman[i][0]}
;break;
case '9': str += ${Roman[i][1]}${Roman[i - 1][1]}
;break;
default: {
const hasFive = data[i] - 5 >= 0;
const repeatNum = hasFive ? data[i] - 5 : data[i];
str += ${hasFive ? Roman[i][0] : ''}${Roman[i][1].repeat(repeatNum)}
}
}
}
return str;
};`