T
TanStack5mo ago
correct-apricot

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
correct-apricot
correct-apricotOP5mo ago
it looks like it is inclusive 👍 a bit strange imo, worth documenting explicitly probably

Did you find this page helpful?