Skip to content

valueAgo

valueAgo(series, now, days?): { day: string; full: boolean; value: number; } | undefined

The value days ago, or the oldest kept when the series is younger than that, with the day it’s from: the change is honest about its window (“since Sep 28”).

Parameter Type Default value
series DailySeries | undefined undefined
now Date undefined
days number 30

{ day: string; full: boolean; value: number; } | undefined