mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-05 01:17:23 +00:00
9 lines
260 B
JavaScript
9 lines
260 B
JavaScript
const letterOrder = 'lkjhyuionm'
|
|
|
|
export const fromNumber = (number, length) => {
|
|
const labelLength = String(length).length
|
|
const digits = String(number).padStart(labelLength, 0)
|
|
return [...digits]
|
|
.map((digit) => letterOrder[digit])
|
|
.join('')
|
|
}
|