Picks the alerts with a drop the user hasn't seen.
The alerts
Those with an unseen drop
getUnseenDrops(await loadPriceAlerts()).length; // 2 Copy
getUnseenDrops(await loadPriceAlerts()).length; // 2
export function getUnseenDrops(alerts: readonly PriceAlert[]): PriceAlert[] { return alerts.filter(({ hasUnseenDrop }) => hasUnseenDrop);} Copy
export function getUnseenDrops(alerts: readonly PriceAlert[]): PriceAlert[] { return alerts.filter(({ hasUnseenDrop }) => hasUnseenDrop);}
Picks the alerts with a drop the user hasn't seen.