MCPcopy Create free account
hub / github.com/editablejs/editable / toABC

Function toABC

packages/plugins/list/src/ordered/template.ts:3–7  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

1import { ListTemplate } from '@editablejs/models'
2
3const toABC = (num: number): string => {
4 return num <= 26
5 ? String.fromCharCode(num + 64).toLowerCase()
6 : toABC(~~((num - 1) / 26)) + toABC(num % 26 || 26)
7}
8
9const toRoman = (num: number) => {
10 let map: Record<number, string> = {

Callers 1

template.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…