T
TanStack7mo ago
fascinating-indigo

Is the "end" of a range inclusive or exclusive?

Noob question, but when TanStack Virtual says to render from 0 to 10, does that mean essentially doing a rows.slice(0, 10), or a rows.slice(0, 10+1)?
1 Reply
fascinating-indigo
fascinating-indigoOP7mo ago
it looks like it is inclusive 👍 a bit strange imo, worth documenting explicitly probably

Did you find this page helpful?