( accountNotifications: AccountNotifications[], )
| 32 | * @returns The count of all notifications. |
| 33 | */ |
| 34 | export function getNotificationCount( |
| 35 | accountNotifications: AccountNotifications[], |
| 36 | ) { |
| 37 | return accountNotifications.reduce( |
| 38 | (sum, account) => sum + account.notifications.length, |
| 39 | 0, |
| 40 | ); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Get the count of notifications across all accounts. |
no outgoing calls
no test coverage detected