We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a66663f commit 46a45e2Copy full SHA for 46a45e2
1 file changed
src/lib/collect.ts
@@ -1 +1,4 @@
1
-export const collect = (value: string, values: string[]) => [...values, value];
+export const collect = (value: string, values: string[] = []) => [
2
+ ...values,
3
+ value
4
+];
0 commit comments