mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
chore: linting
This commit is contained in:
parent
9f39e9663d
commit
048fa9e4a8
8 changed files with 35 additions and 49 deletions
|
|
@ -4,6 +4,7 @@ export function groupBy<T, K extends keyof any>(
|
|||
): Record<K, T[]> {
|
||||
return arr.reduce(
|
||||
(groups, item) => {
|
||||
// biome-ignore lint/suspicious/noAssignInExpressions: <explanation>
|
||||
;(groups[key(item)] ||= []).push(item)
|
||||
return groups
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue