From c304c053be0d5332e8b0cb815b93a6e3aefe2bf0 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 14 Nov 2020 16:02:28 +0100 Subject: [PATCH] Add helper function to generate columnInfo array code --- src/app/helperFunctions/logArrayInColumnInfoForm.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/app/helperFunctions/logArrayInColumnInfoForm.ts diff --git a/src/app/helperFunctions/logArrayInColumnInfoForm.ts b/src/app/helperFunctions/logArrayInColumnInfoForm.ts new file mode 100644 index 0000000..8eb8990 --- /dev/null +++ b/src/app/helperFunctions/logArrayInColumnInfoForm.ts @@ -0,0 +1,3 @@ +export function logArrayInColumnInfoForm(array: string[]) { + console.log(array.map(prop => '{name: \'' + prop + '\', header: \'\'},').join('\n')); +} \ No newline at end of file