barAtMinute()
function barAtMinute(bars, minute): MomentumBar | undefined;Defined in: packages/core/src/momentum/bars.ts:149
The bar covering minute, if any.
Half-open (start <= minute < end), so a minute exactly on a boundary
belongs to the bar that starts there rather than to two bars. Binary
search, because the readout calls it on every pointer move.
Parameters
| Parameter | Type |
|---|---|
bars | readonly MomentumBar[] |
minute | number |
Returns
MomentumBar | undefined