summaryrefslogtreecommitdiff
path: root/src/compiler/utils/list.ts
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-03-25 00:00:22 -0700
committerGravatar GitHub <noreply@github.com> 2021-03-25 00:00:22 -0700
commit30cccdf7154b6470e876464da9e412af10894dd5 (patch)
tree73ed40b30af23ba3e5b94070e478f3e2ca1670c0 /src/compiler/utils/list.ts
parenta72ab10c623022860691d6a095b74dea70cc6f69 (diff)
downloadastro-30cccdf7154b6470e876464da9e412af10894dd5.tar.gz
astro-30cccdf7154b6470e876464da9e412af10894dd5.tar.zst
astro-30cccdf7154b6470e876464da9e412af10894dd5.zip
add component state, top-level await support (#26)
Diffstat (limited to 'src/compiler/utils/list.ts')
-rw-r--r--src/compiler/utils/list.ts4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/utils/list.ts b/src/compiler/utils/list.ts
deleted file mode 100644
index ba1ef9f4c..000000000
--- a/src/compiler/utils/list.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export default function list(items: string[], conjunction = 'or') {
- if (items.length === 1) return items[0];
- return `${items.slice(0, -1).join(', ')} ${conjunction} ${items[items.length - 1]}`;
-}