commit | da16adf84a66bfcc7098525c97aa30f9726da0f2 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Sun Mar 05 10:22:12 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Sun Mar 05 10:22:12 2023 +0000 |
tree | 4fc4386e72bf4f14ad7bc21ffdefeff23c473e5b | |
parent | e7970144042a66fe2011a8f85acdcf90e39f8a8f [diff] [blame] |
Reformat using prettier
diff --git a/src/utils/listToAndMore.ts b/src/utils/listToAndMore.ts index 791ce40..047cbc9 100644 --- a/src/utils/listToAndMore.ts +++ b/src/utils/listToAndMore.ts
@@ -1,7 +1,7 @@ export default (list: string[], max: number) => { // PineappleFan, Coded, Mini (and 10 more) - if(list.length > max) { + if (list.length > max) { return list.slice(0, max).join(", ") + ` (and ${list.length - max} more)`; } return list.join(", "); -} \ No newline at end of file +};