Skip to content

Instantly share code, notes, and snippets.

View adam-kov's full-sized avatar

Ádám Kovács adam-kov

View GitHub Profile
@adam-kov
adam-kov / sub-list-number.ts
Last active October 11, 2022 06:26
Alpha-numeric sub-list number generator in TypeScript
/**
The function takes care of numbering a sub-list with an arbitrary number of entries.
@param rowNumber The number of the entry in the main list. This will be prepended to the lettering.
Usage example:
```
const list = [['foo', 'bar'], ['bar', 'baz', 'foo']];