feat: organized files

This commit is contained in:
TresAbhi committed 2023-06-27 01:46:08 +00:00
1 parent f2ae698438
commit 7dd3913ae8
51 files changed
+68 -68

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
export type TableInputEntry = [string, string | number] | [];
export type TableInput = TableInputEntry[];
export default function cleanTable(input: TableInput) {
return input
.filter((array) => array[1] !== undefined)
.map((array) => (array.length === 0 ? '' : `**${array[0]}**: ${array[1]}`))
.join('\n');
}