9 lines
268 B
TypeScript
9 lines
268 B
TypeScript
function edgeTitleGenerator(counter: number) {
|
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
const num = Math.ceil(counter / chars.length);
|
|
const letterIndex = (counter - 1) % chars.length;
|
|
return `${chars[letterIndex]}${num}`;
|
|
}
|
|
|
|
export { edgeTitleGenerator };
|