T
TanStack3mo ago
flat-fuchsia

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

Did you find this page helpful?