How far a price went down.
The prices before and after
The drop as a percentage of the earlier price
dropPercent({ from: 24, to: 18 }); // 25 Copy
dropPercent({ from: 24, to: 18 }); // 25
export function dropPercent({ from, to }: Pick<PriceDrop, 'from' | 'to'>): number { return ((from - to) / from) * 100;} Copy
export function dropPercent({ from, to }: Pick<PriceDrop, 'from' | 'to'>): number { return ((from - to) / from) * 100;}
How far a price went down.